[mapserver-users] Problems with the WMS Client VERSION 1.3.0

Daniel Morissette dmorissette at mapgears.com
Tue May 3 21:12:06 EDT 2011


I believe the MapServer WMS Client code does not support WMS 1.3.0 yet 
(as the error message says).

There is a ticket about adding this in a future release:
   http://trac.osgeo.org/mapserver/ticket/3039

Daniel

On 11-05-03 09:00 PM, Thomas Gratier wrote:
> Hello,
>
> After a look, my results are near the same. With "wms_server_version"
> "1.3.0", I got the same error msBuildWMSLayerURL(): WMS connection
> error. MapServer supports only WMS 1.0.0 to 1.1.1 (please verify the
> VERSION parameter in the connection string) but when I use
> wms_server_version 1.1.1, positions between original layer and the one
> included into mapserver are OK.
>
> Your test url
> 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
> <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>
>
> My localhost url (I don't hide map path)
> http://localhost/cgi-bin/mapserv?map=/home/quelleville/SIG/wms130/mapfiles/mapfile_carte.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&STYLES=&FORMAT=image/png&LAYERS=0
> <http://localhost/cgi-bin/mapserv?map=/home/quelleville/SIG/wms130/mapfiles/mapfile_carte.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&STYLES=&FORMAT=image/png&LAYERS=0>
>
> The sample mapfile mapfile_carte.map (change paths)
>
> MAP
>      CONFIG PROJ_LIB "/home/user/test/"
>      SYMBOLSET "/home/user/test/symbols.sym"
>      FONTSET "/home/user/test/FONT/fonts.list"
>      SHAPEPATH "home/user/test/deutschland"
>      NAME "DEUTSCHLAND" #name to give your map service
>      IMAGETYPE PNG24
>      EXTENT -180.0000 -90.0000 180.0000 90.0000
>      SIZE 953 480
>      STATUS ON
>      TRANSPARENT ON
>      PROJECTION
> "init=epsg:4326"
>      END
>      OUTPUTFORMAT
>          NAME 'AGGA'
>          DRIVER AGG/PNG
>          IMAGEMODE RGBA
>      END
>      WEB
>          IMAGEPATH "/home/user/test/ms_tmp/"
>          IMAGEURL "/ms_tmp/"
>          METADATA
> "wms_title" "Deutschland Map"
> "wms_onlineresource"
> "http://localhost/cgi-bin/mapserv?map=/home/user/test/wms130/mapfiles/mapfile_carte.map&
> <http://localhost/cgi-bin/mapserv?map=/home/user/test/wms130/mapfiles/mapfile_carte.map&>"
>
> "wms_srs" "EPSG:4326"
>          END
>      END #End Web
>
>      LAYER
>       NAME "0"
>       TYPE RASTER
>       STATUS ON
>       CONNECTIONTYPE WMS
>       CONNECTION "http://gdz.bkg.bund.de/wms_dtk2500?"
>        METADATA
> "wms_title" "0"
> "wms_name" "0"
> "wms_srs" "EPSG:4326"
> "wms_server_version" "1.1.1"
> "wms_format" "image/png"
>       END
>      END
>
> END # Map File
>
> Hope it helps
>
> Regards
>
> ThomasG
> GIS specialist
>
> PS : Don't forget to zoom after you render map in your brower in both
> case. If not, you may think that layers positions are differents
> althought they are perfectly aligned. (for FF, I get this behavior)
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000



More information about the mapserver-users mailing list