[mapserver-users] WMS call with layer names containing a space.
Basques, Bob (CI-StPaul)
bob.basques at ci.stpaul.mn.us
Thu Feb 4 07:50:51 PST 2016
All,
I’m trying to use this WMS:
http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?
Specifically, two layers, “Census Tracts” and “Census Tracts Labels”
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.
I must be missing something obvious.
Thanks.
bobb
Call1:
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<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%3A4326&BBOX=-93.239,44.892,-92.977,44.993&WIDTH=1557&HEIGHT=865<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>
error:
Parameter ‘layers’ contains unacceptable layer names
Call2 (use “+” for space):
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<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>
error:
Parameter ‘layers’ contains unacceptable layer names
Call3 (URL encoding “%20” ):
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<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>
error:
Parameter ‘layers’ contains unacceptable layer names
##Mapfile
MAP
STATUS ON
LAYER
NAME "Census Tracts"
TYPE RASTER
STATUS DEFAULT
CONNECTION "http://tigerweb.geo.census.gov/arcgis/services/TIGERweb/tigerWMS_ACS2015/MapServer/WMSServer?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_name" "Census Tracts"
"wms_server_version" "1.1.1"
#"wms_server_version" "1.3.0"
"wms_format" "image/png24"
"ows_title" "Census Tracts"
#"gml_include_items" "all"
END
PROJECTION
"init=epsg:4326"
END
TEMPLATE "dummy"
END #layer
##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"
##DEBUG 5
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160204/223c8f92/attachment.htm>
More information about the MapServer-users
mailing list