<div style="font-family: arial; font-size: 14px;"><div fr-original-style="" style="box-sizing: border-box;">Interesting.  When I change the mapsource type from "wfs to "mapserver-wfs", Mapserver returns</div><div fr-original-style="" style="box-sizing: border-box;"><span fr-original-style="font-family: courier new;" style="font-family: courier new; box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></span></div><div fr-original-style="" style="box-sizing: border-box;"><span fr-original-style="font-family: courier new;" style="font-family: courier new; box-sizing: border-box;"><HTML><br id="isPasted" fr-original-style="" style="box-sizing: border-box;"><HEAD><TITLE>MapServer Message</TITLE></HEAD><br fr-original-style="" style="box-sizing: border-box;"><!-- MapServer version 8.1-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF --><br fr-original-style="" style="box-sizing: border-box;"><BODY BGCOLOR="#FFFFFF"><br fr-original-style="" style="box-sizing: border-box;">msCGILoadMap(): <strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">Web application error. CGI variable &quot;map&quot; fails to validate.</strong><br fr-original-style="" style="box-sizing: border-box;"></BODY></HTML></span></div><div fr-original-style="" style="box-sizing: border-box;" contenteditable="false"> </div><div fr-original-style="" style="box-sizing: border-box;">somewhat reasonable since GeoMoose adds a </div><div fr-original-style="" style="box-sizing: border-box;">    &MAP=C:/ms4w/apps/gm3-demo-data/undefined</div><div fr-original-style="" style="box-sizing: border-box;">to the request.</div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><hr id="previousmessagehr" fr-original-style="" style="box-sizing: border-box; clear: both; user-select: none;"><div fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">From</strong>: "Dan Little" <theduckylittle@gmail.com><br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">Sent</strong>: 1/2/23 2:59 PM<br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">To</strong>: bfraser@geoanalytic.com<br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">Cc</strong>: Jeff McKenna <jmckenna@gatewaygeomatics.com>, GeoMoose Users <geomoose-users@lists.osgeo.org><br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">Subject</strong>: Re: [GeoMoose-users] WFS identify is GeoMoose using MapServer</div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div dir="ltr" fr-original-style="" style="box-sizing: border-box;"><div fr-original-style="" style="box-sizing: border-box;">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 fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div></div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-class="gmail_quote" fr-original-style="" style="box-sizing: border-box;"><div dir="ltr" fr-original-class="gmail_attr" fr-original-style="" style="box-sizing: border-box;">On Mon, Jan 2, 2023 at 3:55 PM Brent Fraser <<a fr-original-style="" href="mailto:bfraser@geoanalytic.com" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">bfraser@geoanalytic.com</a>> wrote:</div><blockquote fr-original-class="gmail_quote" fr-original-style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex; box-sizing: border-box; color: rgb(94, 53, 177);"><div fr-original-style="font-family:arial;font-size:14px;" style="font-family: arial; font-size: 14px; box-sizing: border-box;"><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;">Hi Jeff (and others),</div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" 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 fr-original-style="" href="http://demo.mapserver.org" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">demo.mapserver.org</a>.  So in accessing the cities layer (<a fr-original-style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline;" href="https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities" id="m_-90037611285075236isPasted" rel="noopener noreferrer" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">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 fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;">  However the Identify operation fails. Mapserver returns</div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><span fr-original-style="font-family:courier new;box-sizing:border-box;" 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;" fr-original-style="box-sizing:border-box;"><wfs:FeatureCollection<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">   xmlns:ms="<a fr-original-style="" href="http://mapserver.gis.umn.edu/mapserver" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://mapserver.gis.umn.edu/mapserver</a>"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">   xmlns:wfs="<a fr-original-style="" href="http://www.opengis.net/wfs" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/wfs</a>"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">   xmlns:gml="<a fr-original-style="" href="http://www.opengis.net/gml" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/gml</a>"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">   xmlns:ogc="<a fr-original-style="" href="http://www.opengis.net/ogc" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/ogc</a>"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">   xmlns:xsi="<a fr-original-style="" href="http://www.w3.org/2001/XMLSchema-instance" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.w3.org/2001/XMLSchema-instance</a>"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">   xsi:schemaLocation="<a fr-original-style="" href="http://www.opengis.net/wfs" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/wfs</a> <a fr-original-style="" href="http://schemas.opengis.net/wfs/1.1.0/WFS-basic.xsd" rel="noopener noreferrer" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://schemas.opengis.net/wfs/1.1.0/WFS-basic.xsd</a><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                       <a fr-original-style="" href="http://mapserver.gis.umn.edu/mapserver" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://mapserver.gis.umn.edu/mapserver</a> <a fr-original-style="" href="https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=ms:cities&OUTPUTFORMAT=XMLSCHEMA" rel="noopener noreferrer" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">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;" fr-original-style="box-sizing:border-box;">   <gml:boundedBy><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">      <gml:null><strong fr-original-style="box-sizing:border-box;font-weight:700;" style="box-sizing:border-box;font-weight:700;">missing</strong></gml:null><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">   </gml:boundedBy><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></wfs:FeatureCollection</span>><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">when the request sent (via POST) is</div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><span fr-original-style="font-family:courier new;box-sizing:border-box;" style="font-family:courier new;box-sizing:border-box;"><GetFeature xmlns="<a fr-original-style="" href="http://www.opengis.net/wfs" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/wfs</a>"<br id="m_-90037611285075236isPasted" style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">            service="WFS"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">            version="1.1.0"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">            outputFormat="text/xml; subtype=gml/2.1.2"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">            xsi:schemaLocation="<a fr-original-style="" href="http://www.opengis.net/wfs" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/wfs</a> <a fr-original-style="" href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" rel="noopener noreferrer" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">            xmlns:xsi="<a fr-original-style="" href="http://www.w3.org/2001/XMLSchema-instance" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.w3.org/2001/XMLSchema-instance</a>"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">    <Query typeName="ms:cities"<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">           srsName=<strong fr-original-style="box-sizing:border-box;font-weight:700;" style="box-sizing:border-box;font-weight:700;">"EPSG:3857</strong>"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">        <Filter xmlns="<a fr-original-style="" href="http://www.opengis.net/ogc" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/ogc</a>"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">            <Intersects><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                <PropertyName>geom</PropertyName><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                <Polygon xmlns="<a fr-original-style="" href="http://www.opengis.net/gml" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">http://www.opengis.net/gml</a>"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                    <exterior><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                        <LinearRing><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                            <posList srsDimension="2"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                                -10382797.7354368  5615179.747957421<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                                -10382797.7354368  5615332.622013991<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                                -10382644.86138023 5615332.622013991<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                                -10382644.86138023 5615179.747957421<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                                -10382797.7354368  5615179.747957421<br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                            </posList><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                        </LinearRing><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                    </exterior><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">                </Polygon><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">            </Intersects><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">        </Filter><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;">    </Query><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></GetFeature></span></div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-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 fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" 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 fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;">Your thoughts?</div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;">Thanks!</div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;">Brent Fraser</div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"><br style="box-sizing:border-box;" fr-original-style="box-sizing:border-box;"></div><div fr-original-style="box-sizing:border-box;" style="box-sizing:border-box;"> </div></div>_______________________________________________<br fr-original-style="" style="box-sizing: border-box;">GeoMoose-users mailing list<br fr-original-style="" style="box-sizing: border-box;"><a fr-original-style="" href="mailto:GeoMoose-users@lists.osgeo.org" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">GeoMoose-users@lists.osgeo.org</a><br fr-original-style="" style="box-sizing: border-box;"><a fr-original-style="" href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div></div>