[Geoserver-users] Inconsistent WFS requests

Hi,
I am trying to request a list of features using WFS requests however im not
getting the correct features returned. When viewing my map in the demo area
of geoserver I click on a point which returns 1 feature correctly. Here is
the request produced:

http://localhost:8080/geoserver/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=547495.6000000002%2C254455.40000000005%2C547496.6000000002%2C254456.40000000005&
X=462&Y=396&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=SCAMBS%3ASCAMBSCC_LDF_SUPER_region&FEATURE_COUNT=50&Layers=SCAMBS%3ASCAMBSCC_LDF_SUPER_region&Styles=&Srs=EPSG%3A27700&WIDTH=538&HEIGHT=550&format=image%2Fpng

However when I try and do my own WFS request using the same boundary box I
get 3 features returned instead of 1:

http://localhost:8080/geoserver/wfs?request=GetFeature&PropertyName=ID&typeName=SCAMBS%3ASCAMBSCC_LDF_SUPER_region&outputFormat=GML2&bbox=547495.6000000002%2C254455.40000000005%2C547496.6000000002%2C254456.40000000005

Am I doing something wrong in my own WFS request? It should only be finding
1 feature.
--
View this message in context: http://www.nabble.com/Inconsistent-WFS-requests-tp24069749p24069749.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

I believe that this is because Geoserver is actually searching for intersecting bounding boxes of individual features with BBOX query. It is faster than searching features which really intersect but it can give false positives. Try using "intersects" instead of bbox.

-Jukka Rahkonen-

dk80 wrote:

Hi,
I am trying to request a list of features using WFS requests however im not
getting the correct features returned. When viewing my map in the demo area
of geoserver I click on a point which returns 1 feature correctly. Here is
the request produced:

http://localhost:8080/geoserver/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=547495.6000000002%2C254455.40000000005%2C547496.6000000002%2C254456.40000000005&
X=462&Y=396&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=SCAMBS%3ASCAMBSCC_LDF_SUPER_region&FEATURE_COUNT=50&Layers=SCAMBS%3ASCAMBSCC_LDF_SUPER_region&Styles=&Srs=EPSG%3A27700&WIDTH=538&HEIGHT=550&format=image%2Fpng

However when I try and do my own WFS request using the same boundary box I
get 3 features returned instead of 1:

http://localhost:8080/geoserver/wfs?request=GetFeature&PropertyName=ID&typeName=SCAMBS%3ASCAMBSCC_LDF_SUPER_region&outputFormat=GML2&bbox=547495.6000000002%2C254455.40000000005%2C547496.6000000002%2C254456.40000000005

Am I doing something wrong in my own WFS request? It should only be finding
1 feature.
--
View this message in context: http://www.nabble.com/Inconsistent-WFS-requests-tp24069749p24069749.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users