<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>None of that stuff is used from the *mapping* side of things. This only effects *map rendering.* You don't need to make any chances to any templates. You are not forced to use SLD to configure cartography. It simply *calls* mapserver using WMS instead of MODE=map. This reduced quite a bit of code and creates significantly more consistency and testability with how requests are made.</span></div><div><br><span></span></div><div><span>Plus, it forces users to configure WMS which is (theoretically) more secure and (definitely) more standardized.<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new
york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Bob Basques <Bob.Basques@ci.stpaul.mn.us><br> <b><span style="font-weight: bold;">To:</span></b> Jim Klassen <klassen.js@gmail.com>; Johan Forsman <Johan.Forsman@LA.GOV>; Dan Little <danlittle@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "geomoose-users@lists.osgeo.org" <geomoose-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, April 17, 2012 10:31 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Geomoose-users] Changes to mapserver-type layer handling in GM 2.6?<br> </font> </div> <br>
<div id="yiv1135573062">
<div>
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS" size="3">Hmm, I would vote for putting the MAPSERVER calling functionality back in, doesn't need to be default or anything, but removing functionality seems wrong for some reason. There are other things that mapserver can do that WMS/WFS can't yet. The templating options alone should be reason to keep it around. SLD templates are a bear to build.</font> </div>
<br>
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS" size="3">Is this something that could be applied via a extra module packaging or ???</font> </div>
<br>
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS" size="3">bobb</font> </div>
<br>
<div style="margin-top:0;margin-bottom:0;">
<br>
<br>
>>> Dan Little <danlittle@yahoo.com> wrote:<br> </div>
<table style="font-size:1em;margin-bottom:0;margin-top:0;margin-right:0;margin-left:15px;" bgcolor="#f3f3f3" border="0">
<tbody><tr>
<td>
<div style="padding-left:7px;border-left:solid 1px #050505;">
<div style="font-family:arial, helvetica, sans-serif;font-size:10pt;color:#000;background-color:#fff;">
<div>
<div style="margin-top:0;margin-bottom:0;">
<span>There is no fall-back to MapServer mode.</span> </div>
</div>
<div>
<div style="margin-top:0;margin-bottom:0;">
<br>
</div>
</div>
<div>
<div style="margin-top:0;margin-bottom:0;">
<span>I really thought LAYERS=all was still working. </span>In fact, I thought it's being used in the demo? </div>
</div>
<div>
<div style="margin-top:0;margin-bottom:0;">
<br>
</div>
</div>
<div>
<blockquote style="margin-top:5px;padding-left:5px;margin-left:5px;border-left:2px solid rgb(16, 16, 255);">
<div style="font-family:arial, helvetica, sans-serif;font-size:10pt;">
<div style="font-family:times new roman, new york, times, serif;font-size:12pt;">
<div dir="ltr">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-weight:bold;"><font face="Arial" size="2"><b>To:</b></font></span><font face="Arial" size="2"> Johan Forsman <Johan.Forsman@LA.GOV><br style="font-family:Arial;font-size:2;"><span style="font-weight:bold;"><b>Cc:</b></span> Bob Basques <Bob.Basques@ci.stpaul.mn.us>; "geomoose-users@lists.osgeo.org" <geomoose-users@lists.osgeo.org><br style="font-family:Arial;font-size:2;"><span style="font-weight:bold;"><b>Sent:</b></span> Monday, April 16, 2012 8:41 PM<br style="font-family:Arial;font-size:2;"><span style="font-weight:bold;"><b>Subject:</b></span> Re: [Geomoose-users] Changes to mapserver-type layer handling in GM 2.6?<br style="font-family:Arial;font-size:2;"></font> </div>
</div>
<div style="margin-top:0;margin-bottom:0;">
<br>
</div>
<div id="yiv1135573062">
<div>
<div>
<div style="margin-top:0;margin-bottom:0;">
Cool! </div>
</div>
<div>
<div style="margin-top:0;margin-bottom:0;">
<br>
</div>
</div>
<div style="margin-top:0;margin-bottom:0;">
The list is always a good place to start for problems/questions/feedback. </div>
<div>
<div style="margin-top:0;margin-bottom:0;">
<br>
</div>
</div>
<div>
<div style="margin-top:0;margin-bottom:0;">
At one point I thought there was a fallback to the old MapServer mode, but I'm not seeing it in the code now. Maybe I missed it. Dan? </div>
</div>
<div>
<div style="margin-top:0;margin-bottom:0;">
<br>
</div>
<div>
<div>
<div style="margin-top:0;margin-bottom:0;">
On Apr 16, 2012, at 8:08 PM, Johan Forsman wrote: </div>
</div>
<div style="margin-top:0;margin-bottom:0;">
<br class="yiv1135573062Apple-interchange-newline">
</div>
<blockquote type="cite">
<div style="margin-bottom:0.75pt;margin-top:3pt;margin-right:3pt;margin-left:3pt;" lang="EN-US">
<div class="yiv1135573062WordSection1">
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";">Success!</span></span> </div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";">The fastest method I could think of to test all layers was a bulk Find of “STATUS ON” and Replace with “GROUP ‘all’” which indeed allows the layers to display as intended using <layer name="all"/> in the mapbook.</span></span> </div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";"><a rel="nofollow" name="_MailEndCompose">I think this topic needs to be documented front and center in the migration guide as it represents a fundamental change in the way the application works. I am sure there are many instances of legacy GM/MapServer installations that may require significant retooling to work with the new version, especially if they are not configured to serve WMS already.</a></span></span> </div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";">Thanks for the tips and for a really great product.</span></span> </div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";">I am curious about Jim’s “in the default case” statement. Does this mean there is a case where the MapServer layers are *<b>not</b>* translated to WMS calls?</span></span> </div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";">Incidentally, I may have discovered a few other items that may not be as intended. If they are not user error, where is appropriate to report them?</span></span> </div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";">Thanks again,</span></span> </div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-family:Arial, sans-serif;font-size:10pt;color:rgb(31, 73, 125);"><span style="COLOR:"rgb(31, 73, 125)";FONT-FAMILY:"Arial, sans-serif";FONT-SIZE:"10pt";">Johan.</span></span> </div>
</div>
<div>
<div style="padding-left:0in;padding-top:3pt;padding-bottom:0in;padding-right:0in;border-top-width:1pt;border-color:black;">
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<span style="font-size:10pt;font-family:Tahoma, sans-serif;"><span style="FONT-FAMILY:"Tahoma, sans-serif";FONT-SIZE:"10pt";"><b>From:</b></span></span><span style="FONT-FAMILY:"Tahoma, sans-serif";FONT-SIZE:"10pt";"><span class="yiv1135573062Apple-converted-space"> </span><span style="font-size:10pt;font-family:Tahoma, sans-serif;">Bob Basques [mailto:Bob.Basques@ci.stpaul.mn.us]</span><span class="yiv1135573062Apple-converted-space"> </span><span style="font-size:10pt;font-family:Tahoma, sans-serif;"><br style="font-family:Tahoma, sans-serif;font-size:10pt;"><b>Sent:</b></span><span class="yiv1135573062Apple-converted-space"> </span><span style="font-size:10pt;font-family:Tahoma, sans-serif;">Monday, April 16, 2012 3:07 PM<br style="font-family:Tahoma, sans-serif;font-size:10pt;"><b>To:</b></span><span
class="yiv1135573062Apple-converted-space"> </span><span style="font-size:10pt;font-family:Tahoma, sans-serif;">Jim Klassen; Johan Forsman<br style="font-family:Tahoma, sans-serif;font-size:10pt;"><b>Cc:</b></span><span class="yiv1135573062Apple-converted-space"> </span></span><span style="font-size:10pt;font-family:Tahoma, sans-serif;"><span style="COLOR:"blue";FONT-FAMILY:"Tahoma, sans-serif";FONT-SIZE:"10pt";"><a rel="nofollow" ymailto="mailto:geomoose-users@lists.osgeo.org" target="_blank" href="mailto:geomoose-users@lists.osgeo.org" style="text-decoration:underline;color:blue;"><u>geomoose-users@lists.osgeo.org</u></a></span><span style="FONT-FAMILY:"Tahoma, sans-serif";FONT-SIZE:"10pt";"><br style="font-family:Tahoma, sans-serif;font-size:10pt;"><b>Subject:</b></span></span><span style="FONT-FAMILY:"Tahoma, sans-serif";FONT-SIZE:"10pt";"><span
class="yiv1135573062Apple-converted-space"> </span><span style="font-size:10pt;font-family:Tahoma, sans-serif;">Re: [Geomoose-users] Changes to mapserver-type layer handling in GM 2.6?</span></span> </div>
</div>
</div>
</div>
<div style="font-size:12pt;margin-right:0in;font-family:serif;margin-left:3pt;" class="yiv1135573062MsoNormal">
<div style="margin-top:0;margin-bottom:0;">
</div>
</div>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS"><span style="font-family:Comic Sans MS;">All (of you),</span></font> </div>
</div>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS"><span style="font-family:Comic Sans MS;"> </span></font> </div>
</div>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS"><span style="font-family:Comic Sans MS;">Just adding the desired layers to a GROUP called "all", should fix things (I think)</span></font> </div>
</div>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS"><span style="font-family:Comic Sans MS;"> </span></font> </div>
</div>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS"><span style="font-family:Comic Sans MS;">bobb</span></font> </div>
</div>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS"><span style="font-family:Comic Sans MS;"> </span></font> </div>
</div>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
<font face="Comic Sans MS"><span style="font-family:Comic Sans MS;"><br style="font-family:Comic Sans MS;">
<br style="font-family:Comic Sans MS;">
>>> Jim Klassen <</span></font><span style="font-family:Comic Sans MS;"><font color="blue" face="Comic Sans MS"><a rel="nofollow" ymailto="mailto:klassen.js@gmail.com" target="_blank" href="mailto:klassen.js@gmail.com" style="text-decoration:underline;color:blue;"><u>klassen.js@gmail.com</u></a></font><font face="Comic Sans MS">> wrote:</font></span> </div>
</div>
<table style="background-color:rgb(243, 243, 243);margin-left:11.25pt;" class="yiv1135573062MsoNormalTable" border="0" cellpadding="0">
<tbody><tr>
<td style="padding-top:0.75pt;padding-right:0.75pt;padding-left:0.75pt;padding-bottom:0.75pt;">
<div style="padding-left:5pt;padding-top:0in;padding-bottom:0in;padding-right:0in;border-color:black;border-left-width:1pt;">
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
It was intentional to migrate to using WMS over the MapServer specific calls in the default case as it eases interoperability with other servers and simplifies the code in many cases.<br><br>I don't think it was intentional to loose the layers=all trick (which was implemented inside MapServer not GeoMoose). Do any of the suggestions in the MapServer ticket referenced by Bob work as a workaround for you?<br><br>While 2.6 is near to release, one of the bigger tasks left is finishing up documentation. Thank you for testing and bring this to our attention.<br><br>On Apr 16, 2012, at 2:24 PM, Johan Forsman wrote:<br><br>> All:<br>><br>> I am slowly migrating a GM 2.2 site with some minor customizations to 2.6 and am wondering if what I am observing with my mapserver layers is by design or an error on my part.<br>><br>> On 2.6 it appears that all mapserver layers are requested as WMS
which appears to result in<br>><br>> 1) any mapserver-type layer returns an error if the map file does not at least contain something like 'ows_enable_request' '*', and<br>><br>> 2) using the "all" parameter in the layer definition in the mapbook returns an error.<br>><br>> For example, in the 2.2 environment I have a "roads" source defined in the mapbook very simply as such:<br>><br>> <map-source name="roads_simple" type="mapserver" ><br>> <file>./sdwp/roads/webmaps_osm_lahwys.map</file><br>> <layer name="all"/><br>><br>> <layer title="Roads" src="roads_simple/all" status="off" legend="true" show-legend="true" fade="false" unfade="false"/><br>><br>> The forwarded URL request is:<br>><br>><span
class="yiv1135573062Apple-converted-space"> </span>http://oph-isb-gis01/cgi-bin/mapserv.exe?map=/mapserver/apps/geomoose2/maps//sdwp/roads/webmaps_osm_lahwys.map&layers=all&mode=map&mapext=-10879743+3088767+-9475743+4200267&imgext=-10879743+3088767+-9475743+4200267&map_size=1404+1111&imgx=702&imgy=555.5&imgxy=1404+1111<br>><br>> The map file contains many scale-dependent line- and annotation layers and renders beautifully.<br>><br>> In the 2.6 environment the same mapbook definition and mapfile results in this call:<br>><br>><span class="yiv1135573062Apple-converted-space"> </span>http://oph-isb-gis01/cgi-bin/mapserv.exe?<br>>
MAP=/mapserver/apps/geomoose26/maps//sdwp/roads/webmaps_osm_lahwys.map&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=all&SRS=EPSG%3A3857&BBOX=-10706687.23566,3214635.152984,-9648798.7643401,4074398.847016&WIDTH=865&HEIGHT=703<br>><br>> which returns:<br>><br>> <ServiceException code="LayerNotDefined"><br>> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter.<br>> </ServiceException><br>><br>> I have unsuccessfully searched for documentation on this topic. Please advise.<br>><br>> Thanks!<br>> Johan Forsman<br>> Geologist<br>> Engineering Services<br>> LDHH-OPH-CEHS<br>> 225.342.7309<br>><br>><br>> _______________________________________________<br>> Geomoose-users mailing list<br>><span class="yiv1135573062Apple-converted-space"> </span><font
color="blue"><a rel="nofollow" ymailto="mailto:Geomoose-users@lists.osgeo.org" target="_blank" href="mailto:Geomoose-users@lists.osgeo.org" style="text-decoration:underline;color:blue;"><u>Geomoose-users@lists.osgeo.org</u></a></font><br>><span class="yiv1135573062Apple-converted-space"> </span><font color="blue"><a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" style="color:blue;text-decoration:underline;"><u>http://lists.osgeo.org/mailman/listinfo/geomoose-users</u></a></font><br><br>_______________________________________________<br>Geomoose-users mailing list<br><font color="blue"><a rel="nofollow" ymailto="mailto:Geomoose-users@lists.osgeo.org" target="_blank" href="mailto:Geomoose-users@lists.osgeo.org" style="text-decoration:underline;color:blue;"><u>Geomoose-users@lists.osgeo.org</u></a></font><br><font color="blue"><a rel="nofollow" target="_blank"
href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" style="color:blue;text-decoration:underline;"><u>http://lists.osgeo.org/mailman/listinfo/geomoose-users</u></a></font> </div>
</div>
</div>
</td>
</tr>
</tbody></table>
<div style="font-size:12pt;margin-bottom:0.0001pt;margin-top:0in;margin-right:0in;font-family:serif;margin-left:0in;">
<div style="margin-top:0;margin-bottom:0;">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<div style="margin-top:0;margin-bottom:0;">
<br>
</div>
</div>
</div>
</div>
<div style="margin-top:0;margin-bottom:0;">
<br>
_______________________________________________<br>Geomoose-users mailing list<br><a rel="nofollow" ymailto="mailto:Geomoose-users@lists.osgeo.org" target="_blank" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br><a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br><br><br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</td>
</tr>
</tbody></table>
</div>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>