[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 03:09:14 PDT 2012


Hi,

My Mapserver 6.2 says it does not support cascading with WMS version 1.3.0 so I suggest you to use WMS 1.1.1 for cascading with version 6.0.1.  And if you send GetMaps for your local Mapserver as WMS 1.3.0 use CRS instead of SRS.

This request works for me with your LAYER settings with only changing    "wms_server_version"  "1.1.1"

http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/apps/maps/test.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&WIDTH=1384&HEIGHT=864&LAYERS=pnoa&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=514838.4373841815,3957896.5993290497,1063927.4217873805,4377788.175637378&CRS=EPSG%3A23029&STYLES=

Anyway because you did not get an error about using SRS with WMS 1.3.0 I somehow feel that there is really an error in finding your layer "pnoa" from the mapfile. If I use both wrong layer name and SRS the wrong layer error is caught first and  I get is the same as you:  msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter.
Check carefully that you are using the same mapfile that you are editing and that you have saved it.  Add also DEGUG 5 for the layer and read the logs.

I checked that cascading that remote WMS works for me  also with Mapserver 6.0.0 on Windows with WMS 1.1.1.

-Jukka Rahkonen-

Pablo Diaz wrote:


Thank you Rahkonen, but I tryed two options and It doesn't run well.

The "pnoa" server runs well, because I checked it with desktop gis.

Thanks.

2012/8/27 Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi<mailto:Jukka.Rahkonen at mmmtike.fi>>
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.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120827/03d25a92/attachment.htm>


More information about the MapServer-users mailing list