<div dir="ltr"><br><div>When querying the TIGER server directly from a browser, the first and third styles of request both work, while the option with the "+" does not. So those are the 2 options the server will accept.</div><div><br></div><div>I guess Mapserver prefers no space in a name, or a "+" to designate space, so you might be stuck.</div><div><br></div><div>As a best practice, they really should have the version with a space in the Title rather than the Name, but you can't fix that from your end.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 4, 2016 at 7:50 AM, Basques, Bob (CI-StPaul) <span dir="ltr"><<a href="mailto:bob.basques@ci.stpaul.mn.us" target="_blank">bob.basques@ci.stpaul.mn.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
All,
<div><br>
</div>
<div>I’m trying to use this WMS:</div>
<div><br>
</div>
<div><a href="http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?" target="_blank">http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?</a></div>
<div><br>
</div>
<div>Specifically, two layers, “Census Tracts” and “Census Tracts Labels”</div>
<div><br>
</div>
<div>I can open the service in just about everything, except Mapserver as a WMS client.  I’m assuming the problem is in how MapServer is sending it’s request.</div>
<div><br>
</div>
<div><br>
</div>
<div>I must be missing something obvious.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>bobb</div>
<div><br>
</div>
<div><br>
</div>
<div>Call1:</div>
<div><br>
</div>
<div><a href="http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=Census" target="_blank">http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=Census</a><a href="http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=Censu+Tracts&_OLSALT=0.48749308905327293&SRS=EPSG:200068&BBOX=550022.0283237,145619.55953757,593285.9716763,164199.44046243&WIDTH=971&HEIGHT=417" target="_blank">
 Tracts&_OLSALT=0.8675355401581306&SRS=EPSG%3A4326&BBOX=-93.239,44.892,-92.977,44.993&WIDTH=1557&HEIGHT=865</a></div>
<div><br>
</div>
<div>error:</div>
<div><br>
</div>
<div>Parameter ‘layers’ contains unacceptable layer names</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Call2 (use “+” for space):</div>
<div><br>
</div>
<div><a href="http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=Census+Tracts&_OLSALT=0.8675355401581306&SRS=EPSG:4326&BBOX=-93.239,44.892,-92.977,44.993&WIDTH=1557&HEIGHT=865" target="_blank">http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=Census+Tracts&_OLSALT=0.8675355401581306&SRS=EPSG%3A4326&BBOX=-93.239,44.892,-92.977,44.993&WIDTH=1557&HEIGHT=865</a></div>
<div><br>
</div>
<div>
<div>error:</div>
<div><br>
</div>
<div>Parameter ‘layers’ contains unacceptable layer names</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Call3 (URL encoding “%20” ):</div>
<div><br>
</div>
<div><a href="http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=Census%20Tracts&_OLSALT=0.8675355401581306&SRS=EPSG:4326&BBOX=-93.239,44.892,-92.977,44.993&WIDTH=1557&HEIGHT=865" target="_blank">http://gis.ci.stpaul.mn.us/datasets/BOUNDARIES/CENSUS/TRACTS/census_tracts_wms.map?FORMAT=image%2Fpng&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&LAYERS=Census%20Tracts&_OLSALT=0.8675355401581306&SRS=EPSG%3A4326&BBOX=-93.239,44.892,-92.977,44.993&WIDTH=1557&HEIGHT=865</a></div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>error:</div>
<div><br>
</div>
<div>Parameter ‘layers’ contains unacceptable layer names</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>##Mapfile</div>
<div><br>
</div>
<div>
<div>MAP</div>
<div><br>
</div>
<div>  <span style="white-space:pre-wrap"></span>STATUS ON</div>
<div><br>
</div>
<div>  <span style="white-space:pre-wrap"></span>LAYER</div>
<div>    <span style="white-space:pre-wrap"></span>NAME "Census Tracts"</div>
<div>    <span style="white-space:pre-wrap"></span>TYPE RASTER</div>
<div>    <span style="white-space:pre-wrap"></span>STATUS DEFAULT</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>CONNECTION "<a href="http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?" target="_blank">http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?</a>"</div>
<div><br>
</div>
<div>    <span style="white-space:pre-wrap"></span>CONNECTIONTYPE WMS</div>
<div><span style="white-space:pre-wrap"></span></div>
<div>    <span style="white-space:pre-wrap"></span>METADATA</div>
<div>        <span style="white-space:pre-wrap"></span>"wms_srs" "EPSG:4326"</div>
<div><span style="white-space:pre-wrap"></span>"wms_name" "Census Tracts"</div>
<div>        <span style="white-space:pre-wrap"></span>"wms_server_version" "1.1.1"</div>
<div>        <span style="white-space:pre-wrap"></span>#"wms_server_version" "1.3.0"</div>
<div>        <span style="white-space:pre-wrap"></span>"wms_format" "image/png24"</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>"ows_title" "Census Tracts"</div>
<div><span style="white-space:pre-wrap"></span>#"gml_include_items" "all"</div>
<div>    <span style="white-space:pre-wrap"></span>END</div>
<div><span style="white-space:pre-wrap"></span></div>
<div>    <span style="white-space:pre-wrap"></span>PROJECTION</div>
<div>    <span style="white-space:pre-wrap"></span>"init=epsg:4326"</div>
<div>    <span style="white-space:pre-wrap"></span>END</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>TEMPLATE "dummy"</div>
<div>  <span style="white-space:pre-wrap"></span>END #layer </div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"</div>
<div><span style="white-space:pre-wrap"></span>##DEBUG 5</div>
<div><br>
</div>
<div>END</div>
</div>
</div>

<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote></div><br></div>