<div dir="ltr"><div>Hi,</div><div>I notice that in qgis 2.18 and also in qgis 3.0</div><div>is not possible to retrieve the legend from the wms layer (using of course the getLegendGraphic comand) apply-ing the SCALE parameter.</div><div><br></div><div>SCALE parameter is a STANDARD OGC parameter (optional) to retrieve the legend <br></div><div>at the actual scale <br></div><div><br></div><div>QGIS allow to retrieve the legend using the the CONTEXTUAL option.</div><div>But it is anot standard parameter.</div><div>The contextual is of course more powerful but is a not standard and so not always all the wms support it.</div><div><br></div><div>So' actually the only option is the standard getlegendgraphics that <br></div><div>retrieve without the scale parameter.</div><div><br></div><div>This some time give wrong lgends.</div><div><br></div><div>I report two eample.</div><div><br></div><div>The first is a good legend retrieved using the SCALE parameter from a wms layer.</div><div><br></div><div>The second is a good example of what mean "sometime" retrieve the legend without the scale parameter.</div><div><br></div><div>The second example repeat three time the same domain because there are three different rendering at three scale interval.</div><div>Without the scale parameter the wms send ALL the legend for EVERY scale interval.</div><div><br></div><div>The first example instead using the sCALE parameter obtain the right legend for the scale of the MAP.</div><div><br></div><div>A.</div><div><br></div><div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br></div></div></div></div>