<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014/1/3 Yves Jacolin <span dir="ltr"><<a href="mailto:yjacolin@free.fr" target="_blank">yjacolin@free.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Le vendredi 3 janvier 2014 13:14:57 aperi2007 a écrit :<br>
<div class="im">> On 03/01/2014 13:06, Alessandro Pasotti wrote:<br>
> > I also think it's not possible at the moment.<br>
> > But I like the way it was implemented in other frameworks, all I need<br>
> > is a way to get the style image for a single "class". I guess we need<br>
> > to add a custom WMS method to the QGIS Server.<br>
><br>
> This is possible using the optional parameter "scale" from wms specs.<br>
> Using it and the layers param.<br>
> You could identify a single layer and get the legend at a specific scale.<br>
><br>
> Apy attention:<br>
> if you do not specify the scale parameter the wms server will return the<br>
> render to ALL the scale.<br>
> This mean tahat the renddering is<br>
> a point a little scale and a polygon at large scale,<br>
> it will return an mage with a point and a polygon.<br>
<br>
</div>Maybe I did not understand what alessandro said, but it seems to me that it is<br>
rather the RULE parameter for the GetLegendGraphic that allow you to get the<br>
legend for one class.<br>
<br>
See <a href="https://github.com/qgis/QGIS/pull/901" target="_blank">https://github.com/qgis/QGIS/pull/901</a><br>
<div class="im HOEnZb"><br>
Y.<br></div></blockquote><div><br></div><div>Thanks Yves, this is exactly what I need.</div><div><br></div><div>This is only available in master but not in 2.0.1, correct?</div><div><br></div></div><div><br></div>-- <br>
Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it">www.itopen.it</a>
</div></div>