[Qgis-developer] Legend refactoring branch merged

Martin Dobias wonder.sk at gmail.com
Wed Jun 4 22:37:37 PDT 2014


Hi Gino

On Thu, Jun 5, 2014 at 1:08 AM, Gino Pirelli <luipir at gmail.com> wrote:
> Hi Martin
>
> you can get any layer that have LegendURL set in getCapability
>
> http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot&SERVICE=WMS&REQUEST=GetCapabilities

Thanks, this helped! It should be fixed now, but it seems that
GetLegendGraphics support has some general issues:
- I have to explicitly choose a style for a WMS layer in order to have legend
- WMS provider adds redundant query items to the URL - e.g. URL [1] is
rewritten to [2]. Maybe that's why my local GeoServer instance has
problems answering the requests from QGIS

Regards
Martin


[1] http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot&map_resolution=91&language=ita&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=rt_arprot&format=image/png&STYLE=default
[2] http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsarprot&map_resolution=91&language=ita&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=rt_arprot&format=image/png&STYLE=default&&SERVICE=WMS&VERSION=1.3.0&SLD_VERSION=1.1.0&REQUEST=GetLegendGraphic&FORMAT=image/png&LAYER=rt_arprot.idparnaz.rt.poly


More information about the Qgis-developer mailing list