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

Thomas Gratier osgeo.mailinglist at gmail.com
Tue May 3 21:00:37 EDT 2011


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

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

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&"

            "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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110504/fe295045/attachment-0001.html


More information about the mapserver-users mailing list