[mapserver-users] MapCache and GetLegendGraphic

2014-05-08 Thread Steve . Toutant
I successfully added a forwarding rule so mapcache can send a 
getLegendGraphics request

forwarding_rule name=getLegendGraphics
   param name=REQUEST type=valuesGetLegendGraphic/param
   param name=SERVICE type=valuesWMS/param
   http
 urlhttp:///cgi-wms/mapserv.fcgi?map=wms.map/url
   /http
 /forwarding_rule

It is working for zoom level 9 - 19If 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=WMSVERSION=1.1.1REQUEST=GetLegendGraphicLAYER=temperature_surfaceSCALE=866685.8312779219FORMAT=image%2Fpng

Non Working url zoom level 8
...SERVICE=WMSVERSION=1.1.1REQUEST=GetLegendGraphicLAYER=temperature_surfaceSCALE=1733371.6625558438FORMAT=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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapCache and GetLegendGraphic

2014-05-08 Thread Jeff McKenna
On 2014-05-08, 11:14 AM, steve.tout...@inspq.qc.ca wrote:
 
 It is working for zoom level 9 - 19If 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
 

Ah I recently hit this same error with GetLegendGraphic requests to a
MapServer WMS layer.  I used the Nabble search in the MapServer forum,
to read how this generic error is thrown for MapServer layers that are
in a GROUP.  There are tickets and discussions about that.  Anyway, not
sure if it is related to your issue, but you could also search the
archives to see what I mean.
http://osgeo-org.1560.x6.nabble.com/MapServer-f4226623.html

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapCache and GetLegendGraphic

2014-05-08 Thread Steve . Toutant
Thanks Jeff but it happens with 3 layers and they are not in a GROUP.
If I request the legend on the  WMS directly it works.
It seems that mapcache is not sending the LAYER parameter in some 
circumstances...





Jeff McKenna jmcke...@gatewaygeomatics.com@lists.osgeo.org 
Envoyé par : mapserver-users-boun...@lists.osgeo.org
2014-05-08 10:34

A
mapserver-users@lists.osgeo.org
cc

Objet
Re: [mapserver-users] MapCache and GetLegendGraphic








On 2014-05-08, 11:14 AM, steve.tout...@inspq.qc.ca wrote:
 
 It is working for zoom level 9 - 19If 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
 

Ah I recently hit this same error with GetLegendGraphic requests to a
MapServer WMS layer.  I used the Nabble search in the MapServer forum,
to read how this generic error is thrown for MapServer layers that are
in a GROUP.  There are tickets and discussions about that.  Anyway, not
sure if it is related to your issue, but you could also search the
archives to see what I mean.
http://osgeo-org.1560.x6.nabble.com/MapServer-f4226623.html

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapCache and GetLegendGraphic

2014-05-07 Thread thomas bonfort
LegendGraphic is not supported. You can however setup a forwarding
rule so that those requests get sent to an upstream WMS server.

--
thomas

On 6 May 2014 22:04,  steve.tout...@inspq.qc.ca wrote:

 Is it possible to make a getLegendGraphic Request via MapCache?
 I Tried but can't make it work

 Thanks
 Steve

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapCache and GetLegendGraphic

2014-05-06 Thread Steve . Toutant
Is it possible to make a getLegendGraphic Request via MapCache?
I Tried but can't make it work

Thanks
Steve
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users