[mapserver-users] Re: GetFeature find data with GET, not with POST

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Tue Jan 24 10:35:46 EST 2012


Hi,

Tried to use

 CONNECTIONTYPE OGR
 CONNECTION "path_to_shape"

Instead of
DATA "path_to_shape"

Now both GET and POST works with BBOX. Something seems to be wrong or undocumented with the native shapefile access. Is this worth filing some kind of ticket?

-Jukka Rahkonen-


________________________________
Rahkonen Jukka  wrote:
Hi,

This GetFeature finds data from MS 6.0.1 (MS4W)


service=wfs&version=1.1.0&request=getfeature&typename=peltolohkot&BBOX=280009,6696093,282161,6698297,EPSG:3067<https://ilmakuva.mmm.fi/cgi-bin/wfs_test?service=wfs&version=1.1.0&request=getfeature&typename=peltolohkot&BBOX=280009,6696093,282161,6698297,EPSG:3067>

This POST request which should find the sama data does not find anything:

<?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="peltolohkot"><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>
Mapserver log file does not tell anything interesting, just this
msQueryByFilter(): Search returned no results. No matching record(s) found.

Data is as shapefile. I have the same dataset in PostGIS on another computer and with that service the filter above does find features. Could this possibly have something to do with the shapefile/PostGIS difference?

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120124/d49c07fe/attachment.html


More information about the mapserver-users mailing list