[mapserver-users] Mapserver doesn't work as WMS-Client. Debian version 6.0.1-3.1 (Debian wheezy).

Pablo Diaz inspdr00 at gmail.com
Mon Aug 27 01:22:55 PDT 2012


Hi,

I've a problem with mapserver as a cgi-bin in Debian Weezy (mapserver
version -> 6.0.1-3.1). When I try to connect with a external layer as WMS
layer I always have same response:

<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" version="1.3.0"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException code="LayerNotDefined">
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
LAYERS parameter.
</ServiceException>
</ServiceExceptionReport>

My mapserver call is this:

http://localhost/cgi-bin/mapserv?map=/var/local/mapserver/PPGIS/map/client_draw.map&SRS=EPSG%3A23029&LAYERS=pnoa&TRANSPARENT=TRUE&FORMAT=image%2Fpng&VISIBLE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&BBOX=591337.45949865,4782765.2220358,595521.36140145,4785376.1944042&WIDTH=1384&HEIGHT=864

And my layer definition in mapfile is this:

  LAYER
NAME 'pnoa'
TYPE RASTER
STATUS OFF
#GROUP "Fondo"
CONNECTION "http://www.idee.es/wms/PNOA/PNOA?"
CONNECTIONTYPE WMS
METADATA
    "wms_name" "pnoa"
    "wms_srs" "EPSG:23029"
    "wms_format" "image/png"
    "wms_title" "PNOA"
    "wms_server_version"  "1.3.0"
    "wms_exceptions_format" "application/vnd.ogc.se_xml"
    LEGEND_META_LAYER "CHECKBOX"
    BASE_LAYER '0'
    LEGEND_ORDER "99"
    QUERYABLE "0"
END
PROJECTION
  "init=epsg:23029"
END
END

Any idea?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120827/829b1030/attachment.html>


More information about the mapserver-users mailing list