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

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Mon Aug 27 02:11:21 PDT 2012


Hi,

Works for me with MS4W and Mapserver 6.2 beta2 after changing
   "wms_server_version"  "1.3.0" into
   "wms_server_version"  "1.1.1"

I could not manage to get the invalid layers error and the too high version error was on plain understandable text. It would be easier to read the logs and responses if some part of "PNOA" and "pnoa"  words were changed to something else where they can be changed.

-Jukka Rahkonen-


Pablo Diaz wrote:

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/1a0e6be4/attachment-0001.html>


More information about the mapserver-users mailing list