Hi again,
I noticed that it works fine when I use the BBOX spatial operator instead of
Within:
http://localhost:8080/GridRetriever/wfs?request=GetFeature&typename=locators
&filter=<Filter%20xmlns="http://www.opengis.net/ogc"%20xmlns:gml="http://www
.opengis.net/gml"><And><PropertyIsEqualTo><PropertyName>country_code</Proper
tyName><Literal>CA</Literal></PropertyIsEqualTo><BBOX><PropertyName>locators
/the_geom</PropertyName><gml:Box><gml:coordinates>-180,-90%20180,90</gml:coo
rdinates></gml:Box></BBOX></And></Filter>
But why does the Within operator work properly while I'm using it lonely,
like with the Test 1?!?....
HTP to fix that problem!
Thanks in advance,
Marc
-----Original Message-----
From: "Morin, Marc-André" [mailto:Marc-Andre.Morin@anonymised.com]
Sent: Wednesday, November 17, 2004 11:59 AM
To: geoserver-devel@lists.sourceforge.net
Subject: [Geoserver-devel] Filter resquest goes wrongHi folks,
I have tried some requests to test my wfs server based on
geoserver 1.1 and
running on tomcat 4.1.30:Test 1 - Filter (Area Of Interest)
Query all properties of all feature instances of the feature
type LOCATORS
that lie within the specified box
http://localhost:8080/GridRetriever/wfs?request=GetFeature&typ
ename=locators
&filter=<Filter%20xmlns="http://www.opengis.net/ogc"%20xmlns:g
ml="http://www
.opengis.net/gml"><Within><PropertyName>locators/the_geom</Pro
pertyName><gml
:Box><gml:coordinates>-120,30%200,80</gml:coordinates></gml:Bo
x></Within></F
ilter>Works fine! So, a filter with the Within operator seems to
work properly...Test 2 - Filter (location name)
Query all properties of all feature instances of the feature
type LOCATORS
where the location name is 'Toronto'
http://localhost:8080/GridRetriever/wfs?request=GetFeature&typ
ename=locators
&filter=<Filter><PropertyIsEqualTo><PropertyName>loc_name</Pro
pertyName><Lit
eral>Toronto</Literal></PropertyIsEqualTo></Filter>Works fine!!
Test 3 - Filter (country code)
Query all properties of all feature instances of the feature
type LOCATORS
where the code name is 'CA'
http://localhost:8080/GridRetriever/wfs?request=GetFeature&typ
ename=locators
&filter=<Filter><PropertyIsEqualTo><PropertyName>country_code<
/PropertyName>
<Literal>CA</Literal></PropertyIsEqualTo></Filter>Works fine!!!
Test 4 - Filter(location name + country code)
Query all properties of all feature instances of the feature
type LOCATORS
where the location name is 'Toronto' and the country code is 'CA'
http://localhost:8080/GridRetriever/wfs?request=GetFeature&typ
ename=locators
&filter=<Filter%20xmlns="http://www.opengis.net/wfs"%20xmlns:o
gc="http://www
.opengis.net/ogc"%20xmlns:gml="http://www.opengis.net/gml"><An
d><PropertyIsE
qualTo><PropertyName>country_code</PropertyName><Literal>CA</L
iteral></Prope
rtyIsEqualTo><PropertyIsEqualTo><PropertyName>loc_name</Proper
tyName><Litera
l>Toronto</Literal></PropertyIsEqualTo></And></Filter>Works fine!!!! So, a filter with the And operator seems to
work properly...Test 5 - Filter(AOI + loc_name)
Query all properties of all feature instances of the feature
type LOCATORS
that lie within the specified box and where the location name
is 'Toronto'
http://localhost:8080/GridRetriever/wfs?request=GetFeature&typ
ename=locators
&filter=<Filter%20xmlns="http://www.opengis.net/wfs"%20xmlns:o
gc="http://www
.opengis.net/ogc"%20xmlns:gml="http://www.opengis.net/gml"><An
d><Within><Pro
pertyName>locators/the_geom</PropertyName><gml:Box><gml:coordi
nates>-74,44%-
68,47</gml:coordinates></gml:Box></Within><PropertyIsEqualTo><
PropertyName>l
oc_name</PropertyName><Literal>Toronto</Literal></PropertyIsEq
ualTo></And></
Filter>Error returned by the server:
java.lang.IllegalStateException: getOutputStream() has
already been called
for this response
at
org.apache.coyote.tomcat4.CoyoteResponse.getWriter(CoyoteRespo
nse.java:600)
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.getWriter(Coyot
eResponseFacad
e.java:171)
at
org.vfny.geoserver.servlets.AbstractService.send(AbstractServi
ce.java:446)
at
org.vfny.geoserver.servlets.AbstractService.sendError(Abstract
Service.java:4
87)
at
org.vfny.geoserver.servlets.AbstractService.doService(Abstract
Service.java:3
63)
at
org.vfny.geoserver.servlets.AbstractService.doGet(AbstractServ
ice.java:195)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.vfny.geoserver.servlets.wfs.WfsDispatcher.doResponse(WfsDi
spatcher.java:
159)
at
org.vfny.geoserver.servlets.wfs.WfsDispatcher.doGet(WfsDispatc
her.java:112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
er(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
rapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValv
eContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardC
ontextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValv
eContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContex
t.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHost
Valve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValv
eContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
spatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValv
eContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
Valve.java:163
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValv
eContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
gineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValv
eContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
java:199)
at
org.apache.coyote.http11.Http11Processor.process(Http11Process
or.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle
r.processConne
ction(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
nt.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)What is wrong with this request???
Please help!
Thanks in advance,
Marc
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel