Error in WMS server

Bart van den Eijnden (OSGIS) bartvde at XS4ALL.NL
Mon Jul 3 09:32:12 PDT 2006


The parameter is called LAYERS and not LAYER.

Best regards,
Bart

Eduardo Arévalo wrote:

> Hello list:
> I receive this error when I try load my WMS
> <ServiceException code="LayerNotDefined">
> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in 
> the LAYERS parameter.
> with
> http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru 
> <http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&LAYER=Mosaico_Peru>
> My mapfile is :
>
> MAP
> NAME        DEMO
> PROJECTION
> "init=epsg:2163"
> END
> WEB
> METADATA
> "wms_title" "Server_WMS"
> "wms_onlineresource"    
> "http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map& 
> <http://10.1.6.46/cgi-bin/mapserv?map=mapwms.map&>"
> "wms_srs"   "EPSG:4269 EPSG:4326"
> END
> END
> END
>
> LAYER
> NAME  Mosaico_Peru
> DATA  "/home/postgres/raster/PERU300DPI.tif"
> STATUS      OFF
> TYPE  RASTER
> PROCESSING  "BANDS=1,2,3"
> OFFSITE     71 74 65
> PROJECTION
> "init=epsg:4326"
> END
> END
> END
> END
>
> please help.
>
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the MapServer-users mailing list