<div dir="ltr"><div>Guillaum,<br></div>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 
<a href="https://github.com/mapserver/mapserver/pull/4709">https://github.com/mapserver/mapserver/pull/4709</a>?<br> <div class="gmail_extra"><br></div>Martin </div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/7/16 Guillaume Sueur <span dir="ltr"><<a href="mailto:no-reply@neogeo-online.net" target="_blank">no-reply@neogeo-online.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK, got it.<br>
It's only the TOLERANCE which is applied there.<br>
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.<br>

<br>
Could there be a way in mapquery.c not to apply the tolerance if the request relies on WFS ?<br>
<br>
Best regards<br>
<br>
Le 16/07/13 11:58, Guillaume Sueur a écrit :<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi list,<br>
<br>
I'm experiencing a weird situation here.<br>
I'm using a PostGIS Layer in WFS. If I send a getFeatures request, the<br>
requested BBOX is transformed when getting in Postgis.<br>
Everything here (data, requests...) is in EPSG:4326.<br>
<br>
For example : my WFS Request has<br>
&BBOX=1,45,2,46<br>
Postgis SQL Query is (as seen from MS DEBUG)<br>
geom && ST_GeomFromText('POLYGON((-10.<u></u>2941176470588<br>
33.7058823529412,-10.<u></u>2941176470588 57.2941176470588,13.<u></u>2941176470588<br>
57.2941176470588,13.<u></u>2941176470588 33.7058823529412,-10.<u></u>2941176470588<br>
33.7058823529412))',4326)<br>
<br>
I don't understand why the BBOX gets modified, and by sooo much!<br>
I have tested with MS 5, 6.0 and 6.2.1 : same results<br>
I have tried to add precision to my BBOX : same results<br>
<br>
When moving a single coordinate of the bbox, only one coordinate of the<br>
SQL is affected. Changing the previous BBOX to<br>
&BBOX=1.5,45,2,46<br>
gives for SQL :<br>
ST_GeomFromText('POLYGON((-9.<u></u>79411764705882<br>
33.7058823529412,-9.<u></u>79411764705882 57.2941176470588,13.<u></u>2941176470588<br>
57.2941176470588,13.<u></u>2941176470588 33.7058823529412,-9.<u></u>79411764705882<br>
33.7058823529412))',4326)<br>
<br>
it shows that all coordinates but minx haven't changed. So I don't think<br>
it's something related to projection.<br>
<br>
I have looked in various source code files, but I can't find the place<br>
where the BBOX is replaced by a RectObj, because I don't know if this<br>
kind of request relies to wfs, query, or whatever else.<br>
<br>
Any clue would be appreciated<br>
<br>
best regards<br>
<br>
Guillaume Sueur<br>
______________________________<u></u>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-dev</a><br>
<br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-dev</a><br>
</div></div></blockquote></div><br></div>