[mapserver-dev] WFS GetFeatures and BBOX problem
Martin Kofahl
martin.kofahl at gmail.com
Tue Jul 16 13:40:35 PDT 2013
Guillaum,
thanks for identifying the cause of this error. I would set tolerance to 0
right in msWFSGetFeature() before calling msQueryByRect(). Are you able to
test https://github.com/mapserver/mapserver/pull/4709?
Martin
2013/7/16 Guillaume Sueur <no-reply at neogeo-online.net>
> OK, got it.
> It's only the TOLERANCE which is applied there.
> But where it makes sense for WMS getFeatureInfo thing (where you click on
> the map to retrieve surrounding features) it does not really fit with WFS
> use case, where you want to retrieve all features from a precise BBOX.
>
> Could there be a way in mapquery.c not to apply the tolerance if the
> request relies on WFS ?
>
> Best regards
>
> Le 16/07/13 11:58, Guillaume Sueur a écrit :
>
> Hi list,
>>
>> I'm experiencing a weird situation here.
>> I'm using a PostGIS Layer in WFS. If I send a getFeatures request, the
>> requested BBOX is transformed when getting in Postgis.
>> Everything here (data, requests...) is in EPSG:4326.
>>
>> For example : my WFS Request has
>> &BBOX=1,45,2,46
>> Postgis SQL Query is (as seen from MS DEBUG)
>> geom && ST_GeomFromText('POLYGON((-10.**2941176470588
>> 33.7058823529412,-10.**2941176470588 57.2941176470588,13.**2941176470588
>> 57.2941176470588,13.**2941176470588 33.7058823529412,-10.**2941176470588
>> 33.7058823529412))',4326)
>>
>> I don't understand why the BBOX gets modified, and by sooo much!
>> I have tested with MS 5, 6.0 and 6.2.1 : same results
>> I have tried to add precision to my BBOX : same results
>>
>> When moving a single coordinate of the bbox, only one coordinate of the
>> SQL is affected. Changing the previous BBOX to
>> &BBOX=1.5,45,2,46
>> gives for SQL :
>> ST_GeomFromText('POLYGON((-9.**79411764705882
>> 33.7058823529412,-9.**79411764705882 57.2941176470588,13.**2941176470588
>> 57.2941176470588,13.**2941176470588 33.7058823529412,-9.**79411764705882
>> 33.7058823529412))',4326)
>>
>> it shows that all coordinates but minx haven't changed. So I don't think
>> it's something related to projection.
>>
>> I have looked in various source code files, but I can't find the place
>> where the BBOX is replaced by a RectObj, because I don't know if this
>> kind of request relies to wfs, query, or whatever else.
>>
>> Any clue would be appreciated
>>
>> best regards
>>
>> Guillaume Sueur
>> ______________________________**_________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/**mailman/listinfo/mapserver-dev<http://lists.osgeo.org/mailman/listinfo/mapserver-dev>
>>
>>
>> ______________________________**_________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/mapserver-dev<http://lists.osgeo.org/mailman/listinfo/mapserver-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20130716/fb8b5c0c/attachment.html>
More information about the mapserver-dev
mailing list