configuring WMS service

toni hernández toni at SIGTE.UDG.ES
Wed Sep 6 02:46:45 EDT 2006


HI all,

I've reading the documentation about configuring a mapserver as a WMS 
server.
Everything seems to be working fine except for the fact that the LAYERS 
parameter (in the url) is not working properly.

In the map file I just have two layers: salt (.dgn file), and girona 
(.shp file with poligons) . Both with status off in the map file
The problem is that the girona layer is always on the image. As you can 
see in the URL bellow the layers parameter is just asking for the salt 
layer.

http://sigserver4.udg.es/cgi-bin/salt_carto?request=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:23031&BBOX=482840.46367545397,4646726.721942619,484238.53218965203,4648124.7904568175&WIDTH=600&HEIGHT=600&LAYERS=salt&STYLES=&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&EXCEPTION=INIMAGE


Here is the girona layer in the map file.

LAYER
    NAME "girona"
    STATUS ON
    TYPE POLYGON
    DATA base
    MINSCALE 2600
    METADATA
          WMS_TITLE "Base Girona"
          WMS_SRS "EPSG:23031"
    END
    PROJECTION
        "init=epsg:23031"
    END
    CLASS
        NAME "Girona"
        OUTLINECOLOR 128 128 128
        COLOR 225 225 185
    END
END



More information about the mapserver-users mailing list