<div dir="ltr">I suspect MS_MAPFILE_PATTERN needs set. Ala: <a href="https://mapserver.org/mapfile/config.html">https://mapserver.org/mapfile/config.html</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 2, 2023 at 4:14 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">Interesting.  When I change the mapsource type from "wfs to "mapserver-wfs", Mapserver returns</div><div style="box-sizing:border-box"><span style="font-family:courier new;box-sizing:border-box"><br style="box-sizing:border-box"></span></div><div style="box-sizing:border-box"><span style="font-family:courier new;box-sizing:border-box"><HTML><br id="m_1776242976025170541isPasted" style="box-sizing:border-box"><HEAD><TITLE>MapServer Message</TITLE></HEAD><br 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 style="box-sizing:border-box"><BODY BGCOLOR="#FFFFFF"><br style="box-sizing:border-box">msCGILoadMap(): <strong style="box-sizing:border-box;font-weight:700">Web application error. CGI variable &quot;map&quot; fails to validate.</strong><br style="box-sizing:border-box"></BODY></HTML></span></div><div style="box-sizing:border-box"> </div><div style="box-sizing:border-box">somewhat reasonable since GeoMoose adds a </div><div style="box-sizing:border-box">    &MAP=C:/ms4w/apps/gm3-demo-data/undefined</div><div style="box-sizing:border-box">to the request.</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"><br style="box-sizing:border-box"></div><hr id="m_1776242976025170541previousmessagehr" style="box-sizing:border-box;clear:both"><div style="box-sizing:border-box"><strong style="box-sizing:border-box;font-weight:700">From</strong>: "Dan Little" <<a href="mailto:theduckylittle@gmail.com" target="_blank">theduckylittle@gmail.com</a>><br style="box-sizing:border-box"><strong style="box-sizing:border-box;font-weight:700">Sent</strong>: 1/2/23 2:59 PM<br style="box-sizing:border-box"><strong style="box-sizing:border-box;font-weight:700">To</strong>: <a href="mailto:bfraser@geoanalytic.com" target="_blank">bfraser@geoanalytic.com</a><br style="box-sizing:border-box"><strong style="box-sizing:border-box;font-weight:700">Cc</strong>: Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>>, GeoMoose Users <<a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a>><br style="box-sizing:border-box"><strong style="box-sizing:border-box;font-weight:700">Subject</strong>: Re: [GeoMoose-users] WFS identify is GeoMoose using MapServer</div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div dir="ltr" style="box-sizing:border-box"><div 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 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"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div></div><div style="box-sizing:border-box"><br style="box-sizing:border-box"></div><div style="box-sizing:border-box"><div dir="ltr" style="box-sizing:border-box">On Mon, Jan 2, 2023 at 3:55 PM Brent Fraser <<a href="mailto:bfraser@geoanalytic.com" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">bfraser@geoanalytic.com</a>> wrote:</div><blockquote 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 style="font-family:arial;font-size:14px;box-sizing:border-box"><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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" 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_1776242976025170541m_-90037611285075236isPasted" rel="noopener noreferrer" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" 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_1776242976025170541m_-90037611285075236isPasted" style="box-sizing:border-box"><wfs:FeatureCollection<br style="box-sizing:border-box">   xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"<br style="box-sizing:border-box">   xmlns:wfs="<a href="http://www.opengis.net/wfs" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">http://www.opengis.net/wfs</a>"<br style="box-sizing:border-box">   xmlns:gml="<a href="http://www.opengis.net/gml" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">http://www.opengis.net/gml</a>"<br style="box-sizing:border-box">   xmlns:ogc="<a href="http://www.opengis.net/ogc" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" 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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" 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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">http://www.opengis.net/wfs</a> <a 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" 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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">http://mapserver.gis.umn.edu/mapserver</a> <a 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" 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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">http://www.opengis.net/wfs</a>"<br id="m_1776242976025170541m_-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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">http://www.opengis.net/wfs</a> <a 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" 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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" 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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" 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" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" 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 style="box-sizing:border-box">GeoMoose-users mailing list<br style="box-sizing:border-box"><a href="mailto:GeoMoose-users@lists.osgeo.org" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" rel="noopener noreferrer" target="_blank">GeoMoose-users@lists.osgeo.org</a><br style="box-sizing:border-box"><a href="https://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" style="box-sizing:border-box;color:rgb(0,102,147);text-decoration:underline" target="_blank">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></blockquote></div></div>
</blockquote></div>