Hi,

I am trying to include a WMS Layer with the WMS Version 1.3.0 in my MapFile. I have included serveral WMS Layers, but so far only VERSION 1.1.1 or lower. The syntax I used before does not seem to work here. I keep on getting the error message:

msBuildWMSLayerURL(): WMS connection error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the VERSION parameter in the connection string)

My Mapserver Version is MapServer version 5.7-dev from FWTools2.4.7.

My Mapfile includes the following Layer:

LAYER
  NAME "Deutschland"
  TYPE RASTER
  STATUS DEFAULT
  CONNECTIONTYPE WMS
  CONNECTION "http://gdz.bkg.bund.de/wms_dtk2500";
   METADATA
    "wms_srs"             "epsg:4326"
    "wms_name"            "0"
    "wms_title"           "DTK2500"
    "wms_server_version"  "1.3.0"
    "wms_format"          "image/png"
    "wms_onlineresource"  "http://gdz.bkg.bund.de/wms_dtk2500";
  END
END

When I include the CONNECTION in my MapFile, then I get the described error. When I ommit the CONNECTION String and use the wms_onlineresource which seems to be the newer syntax, then I do not get the error message, but I can also not see the map. When I use wms_server_version 1.1.0, then I do see the map, but on a wrong position. From what I read that might have something to do with the change of the axis between 1.1.0 and 1.3.0.

Did the Syntax for the mapfile change between the Version 1.1.0 and 1.3.0 and I did not see it in the documentation or am I missing something else? Does the wms_srs still work, since in the url I need the CRS for the projection. Any ideas?

The following REQUEST works in my browser, so the wms Server is running:

http://gdz.bkg.bund.de/wms_dtk2500?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=0&STYLES=&FORMAT=image/png&DPI=96&TRANSPARENT=true

Any help would be greatly appreciated.

Thanks,

Iris Rittinger


--
Iris Rittinger
Terraplan
Gewerbestr. 33
79229 Schallstadt
www.terraplan.com

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to