OK- that works as a XML-Request (eg. in GeoServers Demo Section)
But what is the syntax for an URL based Request ?
And the second question is, why does'nt know GeoServer the gml:box tag,
though it is defined in the OGCWFS specification
Version 1.0.0, page 69/example 13 ?
I'm really confused about the spatial-filters usability, especially I
didn't get any problems using the nonspatial filters.
cheers!
Ronald
"K Geusebroek" <BDGEUSK@anonymised.com> 06.12.2007 12:52 >>>
Sorry, should have known that.
Try this example filter instead of your first filter:
<ogc:Filter>
<ogc:And>
<ogc:BBOX>
<ogc:PropertyName>gsml:shape</ogc:PropertyName>
<gml:Envelope>
<gml:lowerCorner>-25 115</gml:lowerCorner>
<gml:upperCorner>-20 120</gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>gsml:classification/gsml:LithostratigraphicUnit/gml:name</ogc:PropertyName>
<ogc:Literal>urn:x-cgi:desc:unit:GSWA:2001:HammersleyFm</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:Filter>
Greetings Kris
"Ronald Woita" <Ronald.Woita@anonymised.com> 12/06/07 12:02 >>>
Hi Kris,
thanks for your hint, but it does'nt seem to work !
this is the response :
...
filter and bbox both specified but are mutually exclusive
Details:
org.geoserver.wfs.WFSException: filter and bbox both specified but are
mutually exclusive
...
Ronald
"K Geusebroek" <BDGEUSK@anonymised.com> 06.12.2007 11:52 >>>
You can pass the bbox values in the request parameter BBOX instead of
specifiing it in the filter
I didnt test the request so there maybe a bug in it.
Succes
Kris
"Ronald Woita" <Ronald.Woita@anonymised.com> 12/06/07 11:19 >>>
Hi all,
I'm trying to build a Query for a set of features, that lie within a
specified Box and additional filtered by an attribute.
Following the WFS-Specification-Document from the OGC this is the
result from my hard work
But I only get this error message :
( I use GeoServer-1.6.0RC1 )
cheers!
Ronald
*<ServiceExceptionReport version="1.2.0"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
*<ServiceException
locator="org.vfny.geoserver.util.requests.readers.XmlRequestReader">
org.xml.sax.SAXException: Attempted to construct illegal filter - I
dont understand the tag: gml:Box. HINT: tags are case-sensitive!
org.xml.sax.SAXException: Attempted to construct illegal filter - I
dont understand the tag: gml:Box. HINT: tags are case-sensitive!
Details:
org.vfny.geoserver.ServiceException: org.xml.sax.SAXException:
Attempted to construct illegal filter - I dont understand the tag:
gml:Box. HINT: tags are case-sensitive!
at
org.geoserver.wfs.kvp.FilterKvpParser.parseXMLFilterWithOldParser(FilterKvpParser.java:119)
at
org.geoserver.wfs.kvp.FilterKvpParser.parse(FilterKvpParser.java:72)
at org.geoserver.ows.Dispatcher.parseKVP(Dispatcher.java:959)
at org.geoserver.ows.Dispatcher.init(Dispatcher.java:212)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:168)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at
org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdap
ter.service(CoyoteAdapter.java:151)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.xml.sax.SAXException: Attempted to construct illegal
filter - I dont understand the tag: gml:Box. HINT: tags are
case-sensitive!
at
org.geotools.filter.FilterFilter.startElement(FilterFilter.java:138)
at
org.geotools.gml.GMLFilterGeometry.startElement(GMLFilterGeometry.java:171)
at
org.geotools.gml.GMLFilterDocument.startElement(GMLFilterDocument.java:164)
at
org.xml.sax.helpers.ParserAdapter.startElement(ParserAdapter.java:597)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:405)
at
org.geoserver.wfs.kvp.FilterKvpParser.parseXMLFilterWithOldParser(FilterKvpParser.java:116)
... 46 more
</ServiceException>
</ServiceExceptionReport>
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt
u
op:
http://www.denhaag.nl/disclaimer
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u
op: