Hi,
I am trying to move the bbox parameter to the filter parameter because I need to also query against an attribute. I have been able to successfully queries the attribute but before I combine I need to get the bbox within a filter to work. I have listed the url encoded string (at the bottom) that has the bbox within a filter which give me the following error:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
The filter without the encoding is the following:
filter = ‘(ogc:Filterogc:BBOXogc:PropertyNamethe_geom</ogc:PropertyName><gml:Box srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>gml:coordinates-117.25,32.70 -117.00,32.80</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter>)’
What have I done incorrectly?
http%3A//localhost%3A8080/geoserver/wfs%3FSERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DGetFeature%26TYPENAME%3Dvector%253Agv_collaboration_points%252Cvector%253Agv_collaboration_lines%252Cvector%253Agv_collaboration_polygons%252Cvector%253Apush_pins%26MAXFEATURES%3D20%26filter%3D%28%253Cogc%253AFilter%253E%253Cogc%253ABBOX%253E%253Cogc%253APropertyName%253Ethe_geom%253C%252Fogc%253APropertyName%253E%253Cgml%253ABox%2520srsName%253D%2522http%253A%252F%252Fwww.opengis.net%252Fgml%252Fsrs%252Fepsg.xml%25234326%2522%253E%253Cgml%253Acoordinates%253E-117.25%252C32.70%2520-117.00%252C32.80%253C%252Fgml%253Acoordinates%253E%253C%252Fgml%253ABox%253E%253C%252Fogc%253ABBOX%253E%253C%252Fogc%253AFilter%253E%29
–
John J. Mitchell
John Mitchell ha scritto:
Hi,
I am trying to move the bbox parameter to the filter parameter because I need to also query against an attribute. I have been able to successfully queries the attribute but before I combine I need to get the bbox within a filter to work. I have listed the url encoded string (at the bottom) that has the bbox within a filter which give me the following error:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
The filter without the encoding is the following:
filter = '(<ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><gml:coordinates>\-117\.25,32\.70 -117.00,32.80</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter>)'
What have I done incorrectly?
I don't know... I've tried the above filter in FF against 1.7.0-rc1 and
it worked fine:
http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=topp:states&propertyName=STATE_NAME,PERSONS&(<ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box%20srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><gml:coordinates>-117.25,32.70%20-117.00,32.80</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter>)
Cheers
Andrea
Hi John,
Is it possible you could include the entire stack trace (from the console or server log). That should give us more info about what exactly is going wrong here.
Thanks,
-Justin
John Mitchell wrote:
Hi,
I am trying to move the bbox parameter to the filter parameter because I need to also query against an attribute. I have been able to successfully queries the attribute but before I combine I need to get the bbox within a filter to work. I have listed the url encoded string (at the bottom) that has the bbox within a filter which give me the following error:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
The filter without the encoding is the following:
filter = '(<ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><gml:coordinates>\-117\.25,32\.70 -117.00,32.80</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter>)'
What have I done incorrectly?
http%3A//localhost%3A8080/geoserver/wfs%3FSERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DGetFeature%26TYPENAME%3Dvector%253Agv_collaboration_points%252Cvector%253Agv_collaboration_lines%252Cvector%253Agv_collaboration_polygons%252Cvector%253Apush_pins%26MAXFEATURES%3D20%26filter%3D%28%253Cogc%253AFilter%253E%253Cogc%253ABBOX%253E%253Cogc%253APropertyName%253Ethe_geom%253C%252Fogc%253APropertyName%253E%253Cgml%253ABox%2520srsName%253D%2522http%253A%252F%252Fwww.opengis.net <http://252Fwww.opengis.net>%252Fgml%252Fsrs%252Fepsg.xml%25234326%2522%253E%253Cgml%253Acoordinates%253E-117.25%252C32.70%2520-117.00%252C32.80%253C%252Fgml%253Acoordinates%253E%253C%252Fgml%253ABox%253E%253C%252Fogc%253ABBOX%253E%253C%252Fogc%253AFilter%253E%29
--
John J. Mitchell
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org