[mapserver-users] GetLegendGraphic with SLD missing mandatroy layer parameter

Tonton to.tonton at gmail.com
Wed Sep 14 08:15:19 PDT 2011


YES !
thanks you

On Wed, Sep 14, 2011 at 5:01 PM, Meine Toonen <meinetoonen at b3partners.nl>wrote:

> **
> Just as the error says: you have to include the "layer" parameter, instead
> of the "layerS" parameter. So change layers to layer and you should be fine.
>
> Met vriendelijke groet,
>
> Meine Toonen
> B3Partners BV
> Tel: 030 214 2083
>
> ------------------------------
> *From:* Tonton [mailto:to.tonton at gmail.com]
> *To:* mapserver-users [mailto:mapserver-users at lists.osgeo.org]
> *Sent:* Wed, 14 Sep 2011 16:57:20 +0200
> *Subject:* [mapserver-users] GetLegendGraphic with SLD missing mandatroy
> layer parameter
>
>
> hello
> i try to obtain legendgraphic from mapserv with a sld definition but it
> seems i forgot a parameter in my request
>
>
> http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/mapfile/29411.map&SLD=http://192.168.12.60/media/sld/29411.sld&LAYERS=29411&FORMAT=image/png&TRANSPARENT=true&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&WIDTH=200&HEIGHT=100<http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/mapfile/29411.map&SLD=http://192.168.12.60/media/sld/29411.sld&LAYERS=29411&FORMAT=image/png&TRANSPARENT=true&VISIBILITY=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYERS=29411&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=4.760774711589825,45.72893975925065,4.974066894457241,45.78262308062963&WIDTH=200&HEIGHT=100>
>
> WMS server error. Mandatory LAYER  parameter missing in GetLegendGraphic
> request
>
> does someone know about it ?
>
> regards
>
> T.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110914/aa2fb68c/attachment.htm>


More information about the MapServer-users mailing list