<div dir="ltr"><div>Thi is actually a MapServer bug that's been around for a while. MapServer doesn't do well when querying in 3857 and the underlying data is in another projection. So we have an option to use the "wgs84Hack" (internal name in the code). This is enabled when the map-source type is set to "mapserver-wfs".</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 2, 2023 at 3:55 PM Brent Fraser <<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.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"><div style="font-family:arial;font-size:14px"><div style="box-sizing:border-box">Hi Jeff (and others),</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box">  I'm in the process of testing WFS in GeoMoose and thought I would make WFS requests to the demo site at <a href="http://demo.mapserver.org" target="_blank">demo.mapserver.org</a>.  So in accessing the cities layer (<a href="https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities" id="m_-90037611285075236isPasted" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities</a>) it displays OK in GeoMoose even though the display SRS is EPSG:3857.</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box">  However the Identify operation fails. Mapserver returns</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box"><span style="font-family:courier new;box-sizing:border-box"><?xml version='1.0' encoding="UTF-8" ?><br id="m_-90037611285075236isPasted" style="box-sizing:border-box"><wfs:FeatureCollection<br style="box-sizing:border-box">   xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"<br style="box-sizing:border-box">   xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>"<br style="box-sizing:border-box">   xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>"<br style="box-sizing:border-box">   xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"<br style="box-sizing:border-box">   xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"<br style="box-sizing:border-box">   xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a> <a rel="noopener noreferrer" href="http://schemas.opengis.net/wfs/1.1.0/WFS-basic.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/WFS-basic.xsd</a><br style="box-sizing:border-box">                       <a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a> <a rel="noopener noreferrer" href="https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=ms:cities&amp;OUTPUTFORMAT=XMLSCHEMA" target="_blank">https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=ms:cities&amp;OUTPUTFORMAT=XMLSCHEMA</a>"><br style="box-sizing:border-box">   <gml:boundedBy><br style="box-sizing:border-box">      <gml:null><strong style="box-sizing:border-box;font-weight:700">missing</strong></gml:null><br style="box-sizing:border-box">   </gml:boundedBy><br style="box-sizing:border-box"></wfs:FeatureCollection</span>><br style="box-sizing:border-box"><br style="box-sizing:border-box">when the request sent (via POST) is</div><div style="box-sizing:border-box"><span style="font-family:courier new;box-sizing:border-box"><GetFeature xmlns="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>"<br id="m_-90037611285075236isPasted" style="box-sizing:border-box">            service="WFS"<br style="box-sizing:border-box">            version="1.1.0"<br style="box-sizing:border-box">            outputFormat="text/xml; subtype=gml/2.1.2"<br style="box-sizing:border-box">            xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a> <a rel="noopener noreferrer" href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"<br style="box-sizing:border-box">            xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><br style="box-sizing:border-box">    <Query typeName="ms:cities"<br style="box-sizing:border-box">           srsName=<strong style="box-sizing:border-box;font-weight:700">"EPSG:3857</strong>"><br style="box-sizing:border-box">        <Filter xmlns="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"><br style="box-sizing:border-box">            <Intersects><br style="box-sizing:border-box">                <PropertyName>geom</PropertyName><br style="box-sizing:border-box">                <Polygon xmlns="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>"><br style="box-sizing:border-box">                    <exterior><br style="box-sizing:border-box">                        <LinearRing><br style="box-sizing:border-box">                            <posList srsDimension="2"><br style="box-sizing:border-box">                                -10382797.7354368  5615179.747957421<br style="box-sizing:border-box">                                -10382797.7354368  5615332.622013991<br style="box-sizing:border-box">                                -10382644.86138023 5615332.622013991<br style="box-sizing:border-box">                                -10382644.86138023 5615179.747957421<br style="box-sizing:border-box">                                -10382797.7354368  5615179.747957421<br style="box-sizing:border-box">                            </posList><br style="box-sizing:border-box">                        </LinearRing><br style="box-sizing:border-box">                    </exterior><br style="box-sizing:border-box">                </Polygon><br style="box-sizing:border-box">            </Intersects><br style="box-sizing:border-box">        </Filter><br style="box-sizing:border-box">    </Query><br style="box-sizing:border-box"></GetFeature></span></div><div style="box-sizing:border-box"><br style="box-sizing:border-box"> Note the srsName in the request (3857 is not listed in the MapServer GetCapabilities doc).  When asking for the features for display GeoMoose sends a BBOX (3857) in the request.  When requesting feature(s) in Identify, it sends only the Intersects filter in the above XML.</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box">So I'm not sure if this is a Mapserver configuration issue or a bug/Issue in GeoMoose.</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box">Your thoughts?</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box">Thanks!</div><div style="box-sizing:border-box">Brent Fraser</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box"> </div></div>
_______________________________________________<br>
GeoMoose-users mailing list<br>
<a href="mailto:GeoMoose-users@lists.osgeo.org" target="_blank">GeoMoose-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
</blockquote></div>