<div dir="ltr"><p>Hi Even,</p>
<p>Wow - thanks a lot!</p>
<p>Also, your other assumption was right - when switching the WFS version to 1.0 in QGIS, the ST_MakeEnvelope() from QGIS Desktop as a WFS client seems to be translated to <gml:Box/> instead of envelope:</p>
<p>Here is the filter request from QGIS, when choosing WFS 1.0:</p>
<p><span style="font-family:"andale mono",monospace"><ogc:Filter xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>" xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"></span><br><span style="font-family:"andale mono",monospace"><ogc:And></span><br><span style="font-family:"andale mono",monospace"><ogc:BBOX></span><br><span style="font-family:"andale mono",monospace"><ogc:PropertyName>wkb_geometry</ogc:PropertyName></span><br><span style="font-family:"andale mono",monospace"><gml:Box srsName="EPSG:2056"></span><br><span style="font-family:"andale mono",monospace"><gml:coordinates cs="," ts=" ">2437300,1064250 2872700,1305750</gml:coordinates></span><br><span style="font-family:"andale mono",monospace"></gml:Box></span><br><span style="font-family:"andale mono",monospace"></ogc:BBOX></span><br><span style="font-family:"andale mono",monospace"><ogc:And xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"></span><br><span style="font-family:"andale mono",monospace"><ogc:PropertyIsEqualTo xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"></span><br><span style="font-family:"andale mono",monospace"><ogc:PropertyName xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>">kanton</ogc:PropertyName></span><br><span style="font-family:"andale mono",monospace"><ogc:Literal xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>">SO</ogc:Literal></span><br><span style="font-family:"andale mono",monospace"></ogc:PropertyIsEqualTo></span><br><span style="font-family:"andale mono",monospace"><ogc:Intersects xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"></span><br><span style="font-family:"andale mono",monospace"><ogc:PropertyName xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>">wkb_geometry</ogc:PropertyName></span><br><span style="font-family:"andale mono",monospace"><gml:Box xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" srsName="EPSG:2056"></span><br><span style="font-family:"andale mono",monospace"><gml:coordinates xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" cs="," ts=" ">2612000,1245500 2613500,1246500</gml:coordinates></span><br><span style="font-family:"andale mono",monospace"></gml:Box></span><br><span style="font-family:"andale mono",monospace"></ogc:Intersects></span><br><span style="font-family:"andale mono",monospace"></ogc:And></span><br><span style="font-family:"andale mono",monospace"></ogc:And></span><br><span style="font-family:"andale mono",monospace"></ogc:Filter></span></p>
<p>Thanks a lot to both Even and James for your help!</p>
<p>Andreas</p></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 5 Jun 2020 at 16:38, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:"monospace";font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">On vendredi 5 juin 2020 15:09:22 CEST Even Rouault wrote:</p>
<p style="margin:0px;text-indent:0px">> > So my question: is a newer version of UMN (7.2, 7.4, 7.6) perhaps the</p>
<p style="margin:0px;text-indent:0px">> > "Envelope" style syntax in the WFS filter that QGIS Desktop is sending or</p>
<p style="margin:0px;text-indent:0px">> > should we better try to add a new "bbox" method to the WFS Client of QGIS</p>
<p style="margin:0px;text-indent:0px">> > Desktop? I quickly browsed through the UMN Mapserver changelogs but didn't</p>
<p style="margin:0px;text-indent:0px">> > see any obvious improvement around "Envelope" support in filters.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Hi Andreas,</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> this is quite unfortunate MapServer doesn't support gml:Envelope as a</p>
<p style="margin:0px;text-indent:0px">> geometry in the "Intersects" request, whereas we support it inside a <BBOX></p>
<p style="margin:0px;text-indent:0px">> filter. The optimistic in me says that shouldn't be too hard to fix.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Was indeed simple to fix:</p>
<p style="margin:0px;text-indent:0px"><a href="https://github.com/mapserver/mapserver/pull/6091" target="_blank">https://github.com/mapserver/mapserver/pull/6091</a></p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">On QGIS client side, you may try with WFS 1.0. I don't think QGIS will emit a gml:Envelope then </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><br>--<br>Andreas Neumann<br></div><a href="http://QGIS.ORG" target="_blank">QGIS.ORG</a> board member (treasurer)<br></div></div>