<div dir="ltr"><div><div><div><br></div>Yes that is interesting - I don't know the WMS spec well enough to confirm if leading numbers are illegal or not. Here's a vaguely relevant blurb from the spec:<br><br><div style="margin-left:40px"><i>The Name is a text string used for machine-to-machine communication while the Title is for the benefit of humans. For example, a dataset might have the descriptive Title</i> <i>“Maximum Atmospheric Temperature” and be requested using the abbreviated Name “ATMAX”.</i><br></div><br></div>For future archive searchers (or ArcServer admins who are curious about avoiding this annoying default), the following page lists the configurable layer properties that can be set in ArcServer:<br></div><div><br><a href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Available_WMS_service_properties/015400000596000000/">http://resources.arcgis.com/en/help/main/10.1/index.html#/Available_WMS_service_properties/015400000596000000/</a><br><br></div><div>Note that "Use layer names from the map document" is an option that can be checked, and the table says:<br><p style="margin-left:40px" id="GUID-5BE6C56C-D182-4ED5-AF4A-45AC265BEC67"><i>By default, this
option is unchecked, meaning that layers in the WMS service will be
represented with zero-based integers, indicating their position in the
table of contents from the top down.</i></p><p style="margin-left:40px" id="GUID-E6F49D10-60B0-429F-BEB4-9BDEF2BCE963"><i>Selecting
this checkbox will allow the layer names to be represented with the
same strings that are used in the map document's table of contents. All
the layer names in the map must be unique and cannot contain any of the
characters <span class="">&</span>, <span class=""><</span>, <span class="">></span>, <span class="">"</span>, or <span class="">'</span>. If you need to use one of these characters, refer to the character substitute table below.</i></p></div><div>So, if you run an ArcServer, check this box!<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 12:59 PM, James Klassen <span dir="ltr"><<a href="mailto:klassen.js@gmail.com" target="_blank">klassen.js@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Interestingly the MapServer WMS server gives a warning if you set a layer name to start with a number that doing so violates the spec and may not work everywhere.</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Mar 3, 2015 2:22 PM, "TC Haddad" <<a href="mailto:tchaddad@gmail.com" target="_blank">tchaddad@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div>For the record Bob, this sort of thing (use of numbers as default layer names in WMS) is common on ArcServers where the admins have not enabled "real" names for services.<br><br></div><div>So, not unique to NWI by any means....<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 12:18 PM, Bistrais, Bob <span dir="ltr"><<a href="mailto:Bob.Bistrais@maine.gov" target="_blank">Bob.Bistrais@maine.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="color:#1f497d">Think I got it now. Once I updated the URL, the problem was with the layer name. I had the layer name as “Wetlands” (that would seem logical). But the actual layer name in the WMS is “1”. I updated mapbook.xml
accordingly, and it works.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">I hope this might help others out there. If you use USFWS NWI service, please be aware of the layer names!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Bob<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:geomoose-users-bounces@lists.osgeo.org" target="_blank">geomoose-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:geomoose-users-bounces@lists.osgeo.org" target="_blank">geomoose-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Bistrais, Bob<br>
<b>Sent:</b> Tuesday, March 03, 2015 3:08 PM<br>
<b>To:</b> <a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Geomoose-users] problem projecting a WMS<u></u><u></u></span></p>
</div>
</div><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#1f497d">Correction- I forgot to update the layer name for the Catalog checkbox. Now that I’ve done that, I get the dreaded pink screen. Still investigating on my end, but something’s weird about this updated NWI service.
Any thoughts?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:geomoose-users-bounces@lists.osgeo.org" target="_blank">geomoose-users-bounces@lists.osgeo.org</a> [<a href="mailto:geomoose-users-bounces@lists.osgeo.org" target="_blank">mailto:geomoose-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Bistrais, Bob<br>
<b>Sent:</b> Tuesday, March 03, 2015 2:48 PM<br>
<b>To:</b> <a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a><br>
<b>Subject:</b> [Geomoose-users] problem projecting a WMS<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hello all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I needed to update my NWI layer references because of an apparent change by USFWS with the NWI service. I thought it would be as simple as changing the URL and/or layer name. But now the NWI layer does not show at all. I am not getting
any error messages in Firebug. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Our applications use EPSG:26919 as an SRS. The NWI services supports 84, 4326, 3857, and 102100. In the past I have made this work simply by setting the map-source projection parameter, but it doesn’t seem to be working now.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My suspicion is that that the layer is not being reprojected to the application’s projection, but this worked in the past. This particular application is using GeoMoose 2.6RC1. Here is the code from the mapbook.xml:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> <map-source name="nwi" type="wms" reference="false" tiled="false" projection='EPSG:26919'><u></u><u></u></p>
<p class="MsoNormal"> <url><a href="http://107.20.228.18/ArcGIS/services/Wetlands/MapServer/WMSServer?%3c/url" target="_blank">http://107.20.228.18/ArcGIS/services/Wetlands/MapServer/WMSServer?</url</a>><u></u><u></u></p>
<p class="MsoNormal"> <layer name="Wetlands" queryable="true" status="off"/><u></u><u></u></p>
<p class="MsoNormal"> <param name="format" value="image/png"/>
<u></u><u></u></p>
<p class="MsoNormal"> <param name="TRANSPARENT" value="TRUE"/>
<u></u><u></u></p>
<p class="MsoNormal"> <param name="STYLES" value=""/><u></u><u></u></p>
<p class="MsoNormal"> </map-source><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If it helps, here is the URL to USFWS’s NWI page:<u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.fws.gov/wetlands/Data/Web-Map-Services.html" target="_blank">http://www.fws.gov/wetlands/Data/Web-Map-Services.html</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div></div></div>
</div>
<br>_______________________________________________<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="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br></blockquote></div><br></div>
<br>_______________________________________________<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="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br></blockquote></div>
</div></div></blockquote></div><br></div>