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

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Tue Jan 24 09:53:11 PST 2012


I'd say yes to a ticket if it's possible to create a concise test dataset. Usually shapefiles are the most robust simply because they are used the most.

Steve

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, January 24, 2012 9:36 AM
To: 'mapserver-users at lists.osgeo.org'
Subject: [mapserver-users] Re: GetFeature find data with GET, not with POST

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/8bfb1647/attachment.htm>


More information about the MapServer-users mailing list