Error parsing VERSION parameter in WMS CONNECTION if LAYER name contains '.'
MapServer throws the following error when we use a WMS CONNECTION string that
contains a layer name with a "." in it:
msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to
1.1.1 (please verify the VERSION parameter in the connection string).
msOWSParseVersionString(): WMS server error. Invalid version
(1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=popp.lace&STYLES=&FORMAT=image/png).
OWS version must be in the format 'x.y' or 'x.y.z'
Here is a layer definition to reproduce:
LAYER
DEBUG TRUE
NAME popplace3
TYPE RASTER
STATUS ON
CONNECTIONTYPE WMS
CONNECTION
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=popp.lace&STYLES=&FORMAT=image/png"
METADATA
"wms_srs" "EPSG:42304"
END
END # Layer
... if we remove the "." in popp.lace then and all is good.
Notice the error message seems to be related to the VERSION keyword not being
parsed properly.
Change History
(5)
Owner: |
changed from mapserverbugs to dmorissette
|
Cc: |
havard.tveite@… added
|
Resolution: |
→ fixed
|
Status: |
new → closed
|