Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS BBOX filter (POST) fails with native shapefile access #4166

Closed
mapserver-bot opened this issue Apr 4, 2012 · 3 comments
Closed

WFS BBOX filter (POST) fails with native shapefile access #4166

mapserver-bot opened this issue Apr 4, 2012 · 3 comments
Assignees

Comments

@mapserver-bot
Copy link

Reporter: jratike80
Date: 2012/01/25 - 09:55
Trac URL: http://trac.osgeo.org/mapserver/ticket/4166
WFS GetFeature request with OGC BBOX filter fails if shapefile is accessed through the native Mapserver native method. With OGR access the recuest is successful.

This can be tested with the attached shapefile and mapfile by toggling the access type by commenting/uncommenting the following lines.

 #CONNECTIONTYPE OGR
 #CONNECTION "d:\ms4w\data\bbox_test.shp"
 DATA "d:\ms4w\data\bbox_test.shp"

The POST request that shows the difference for me is this

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature handle="GeoTools 2.7-RC2 WFS DataStore" maxFeatures="100"
outputFormat="text/xml; subtype=gml/3.1.1" resultType="results" service="WFS"
version="1.1.0" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.
opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ows="http://www.opengis.net/ows" xmlns:wfs="http://www.opengis.
net/wfs"><wfs:Query srsName="EPSG:3067"
typeName="bbox_test"><ogc:Filter><ogc:BBOX><ogc:PropertyName>msGeometry</ogc:PropertyName><gml:Envelope><gml:lowerCorner>280009.0 6696093.0
</gml:lowerCorner><gml:upperCorner>282161.0 6698297.
0</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>

The practical consequence is that Geoserver cannot cascade this WFS layer if it is configured to use the native shapefile access.

@mapserver-bot
Copy link
Author

attachment http://trac.osgeo.org/mapserver/attachment/ticket/4166/bbox_test.zip :

   Little shapefile and mapfile for testing

@ghost ghost assigned sdlime Jul 17, 2012
@sdlime
Copy link
Member

sdlime commented Jul 17, 2012

Will have a look... Output is just standard GML then? Steve

@jratike80
Copy link

BBOX and POST does work with Mapserver 7.0 with both native shp connection and with OGR shapefile driver. The mapfile that is included in the bbox_test.zip needs some editing for making it to work with MS 7.0, for example the EXTENT must now cover the data. When I wrote the ticket for MS 5.x or 6.x wrong extent had no effect. This extent is good:
EXTENT 279470.988034 6695663.439659 280666.936409 6696825.670338

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants