Opened 12 years ago

Last modified 12 years ago

#4166 new defect

WFS BBOX filter (POST) fails with native shapefile access

Reported by: jratike80 Owned by: msogcbugs
Priority: normal Milestone:
Component: WFS Server Version: unspecified
Severity: normal Keywords:
Cc:

Description

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.

Attachments (1)

bbox_test.zip (8.1 KB ) - added by jratike80 12 years ago.
Little shapefile and mapfile for testing

Download all attachments as: .zip

Change History (2)

by jratike80, 12 years ago

Attachment: bbox_test.zip added

Little shapefile and mapfile for testing

comment:1 by jratike80, 12 years ago

Component: MapServer C LibraryWFS Server
Owner: changed from sdlime to msogcbugs
Note: See TracTickets for help on using tickets.