Hello, Le vendredi 3 janvier 2014 13:14:57 aperi2007 a écrit : > On 03/01/2014 13:06, Alessandro Pasotti wrote: > > I also think it's not possible at the moment. > > But I like the way it was implemented in other frameworks, all I need > > is a way to get the style image for a single "class". I guess we need > > to add a custom WMS method to the QGIS Server. > > This is possible using the optional parameter "scale" from wms specs. > Using it and the layers param. > You could identify a single layer and get the legend at a specific scale. > > Apy attention: > if you do not specify the scale parameter the wms server will return the > render to ALL the scale. > This mean tahat the renddering is > a point a little scale and a polygon at large scale, > it will return an mage with a point and a polygon.
Maybe I did not understand what alessandro said, but it seems to me that it is rather the RULE parameter for the GetLegendGraphic that allow you to get the legend for one class. See https://github.com/qgis/QGIS/pull/901 Y. > > Regards, > > Andrea. > > > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Yves Jacolin _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
