<div style="font-family: arial; font-size: 14px;"><div fr-original-style="" style="box-sizing: border-box;">Hi Jim,</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;">  In my efforts to add WFS mapsources to our mapbook-test-servers.xml, I see that previously I had used</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;"><span fr-original-style="font-family: courier new;" style="font-family: courier new; box-sizing: border-box;">    <map-source name="wfs-polygons"               type="wfs"     title="Parcel Polygons"><br id="isPasted" fr-original-style="" style="box-sizing: border-box;">        <url>http://localhost/cgi-bin/mapserv.exe</url><br fr-original-style="" style="box-sizing: border-box;">        <param name="map" value="C:/ms4w/apps/gm3-demo-data/demo/parcels/parcels.map"/></span><br 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;">which is not very "robust" for testing.  It's in our demo at <a fr-original-style="" href="//demo.geomoose.org" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">demo.geomoose.org</a> and will not work for most people experimenting with </div><div fr-original-style="" style="box-sizing: border-box;"><a fr-original-style="" href="https://demo.geomoose.org/3.x/desktop/?mapbook=test" id="isPasted" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">https://demo.geomoose.org/3.x/desktop/?mapbook=test</a></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;">I'd like to change the mapbook-test-servers.xml  to use WFS at <a fr-original-style="" href="https://demo.geomoose.org" id="isPasted" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer">demo.geomoose.org</a>  for parcel polygons, points and pipelines.  I guess I would rather not include a map param for each.  How much work do you think it would be to have the map files handled by the server for our demo?</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;">Thanks!</div><div fr-original-style="" style="box-sizing: border-box;">Brent</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;" contenteditable="false"> </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>: "Jim Klassen" <klassen.js@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/3/23 10:51 AM<br fr-original-style="" style="box-sizing: border-box;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">To</strong>: 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 fr-original-style="" style="box-sizing: border-box;">I would guess that it is non-compliant to send/ask for a SRS that isn't advertised in the GetCapabilities.  I think the bug is that MapServer is working at all.</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;">Personally, I think type="wfs" should be strongly preferred and type="mapserver-wfs" is the hack.  It is a work around for `/cgi-bin/mapserv?map=/file/system/path&` being ugly.  "mapserver-wfs" really isn't designed to work across multiple mapserver sites either.  IMO MapServer shouldn't be exposing (full) filesystem paths to the web request at all and MapServer 7/8 have been making steps to avoid this more.  If it were up to me, I'd remove the "mapserver-*" types entirely.  I'd expect MS_MAPFILE_PATTERN is already set on the server correctly, otherwise it wouldn't work at all.</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;">I'm still partial to adding an Apache handler for ".map" so mapfiles are "run" from within the webroot like a CGI or PHP file would normally be run, but instead of Apache passing it to PHP or Perl/Python/whatever for handling, the mapfile gets passed to MapServer (via environment variables) to run.  A side benefit is Apache sees the path to the mapfile and normal Apache authentication/authorization can be applied within the standard <Directory> or <Location> stanzas.  I don't see any reason to want MapServer to implement yet another authentication/authorization system when Apache is already there.  This works well at least from MapServer 5-7. I haven't tried it with 8 yet.  The catch is that MapServer doesn't auto detect the server URL correctly when doing this so "ows_onlineresource" needs to be set to the URL (as seen by end users) to the mapfile.  (I have a patch for MapServer that lets the auto-detection still work by looking at the SCRIPT_URI environment variable.)</div><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div><div fr-original-class="moz-cite-prefix" fr-original-style="" style="box-sizing: border-box;">On 1/2/23 16:44, Brent Fraser wrote:</div><blockquote cite="mid:9c8a6cf2bfdc4faaa15f7fe91ed4d7fe@geoanalytic.com" fr-original-style="" style="box-sizing: border-box; border-left: 2px solid rgb(94, 53, 177); margin-left: 0px; padding-left: 5px; color: rgb(94, 53, 177);" type="cite"><div fr-original-style="" style="box-sizing: border-box;">Hmm,    I would say that GeoMoose should not include a MAP= in the request if there is no <file> in the mapsource definition.</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;"> </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;"><strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">From</strong>: "Dan Little" <a fr-original-class="moz-txt-link-rfc2396E" fr-original-style="" href="mailto:theduckylittle@gmail.com" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer"><theduckylittle@gmail.com></a><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 3:40 PM<br fr-original-style="" style="box-sizing: border-box;"> <strong fr-original-style="" style="box-sizing: border-box; font-weight: 700;">To</strong>: <a fr-original-class="moz-txt-link-abbreviated" 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><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 <a fr-original-class="moz-txt-link-rfc2396E" fr-original-style="" href="mailto:jmckenna@gatewaygeomatics.com" style="box-sizing: border-box; color: rgb(0, 102, 147); text-decoration: underline; user-select: auto;" target="_blank" rel="noopener noreferrer"><jmckenna@gatewaygeomatics.com></a>, GeoMoose Users <a fr-original-class="moz-txt-link-rfc2396E" 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;"> <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;">I suspect MS_MAPFILE_PATTERN needs set. Ala: <a fr-original-class="moz-txt-link-freetext" fr-original-style="" href="https://mapserver.org/mapfile/config.html" 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://mapserver.org/mapfile/config.html</a></div></blockquote><div fr-original-style="" style="box-sizing: border-box;"><br fr-original-style="" style="box-sizing: border-box;"></div></div>