[mapserver-users] MapCache and GetLegendGraphic

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu May 8 07:14:14 PDT 2014


I successfully added a forwarding rule so mapcache can send a 
getLegendGraphics request

<forwarding_rule name="getLegendGraphics">
       <param name="REQUEST" type="values">GetLegendGraphic</param>
       <param name="SERVICE" type="values">WMS</param>
       <http>
         <url>http://..../cgi-wms/mapserv.fcgi?map=wms.map</url>
       </http>
     </forwarding_rule>

It is working for zoom level 9 - 19....If I zoom out at level 8 to 0, the 
getLegendGraphics request returns this
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM 
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="LayerNotDefined">
msWMSGetLegendGraphic(): WMS server error. Mandatory LAYER parameter 
missing in GetLegendGraphic request.
</ServiceException>
</ServiceExceptionReport>

I clearly see that LAYER parameter is there. Actually, except for SCALE 
parameter, the URL is the same as the one for zoom level 9 and +

Working url zoom level 9
...&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=temperature_surface&SCALE=866685.8312779219&FORMAT=image%2Fpng

Non Working url zoom level 8
...&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&LAYER=temperature_surface&SCALE=1733371.6625558438&FORMAT=image%2Fpng

In mapcache config I don't have a restricted_extent for this layer neither 
min/max zoom parameter

I don't know what to look for anymore, any ideas?

thank you 
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140508/da5b9197/attachment.html>


More information about the mapserver-users mailing list