<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">The RULE ?<br>
      <br>
      It need to know exactly the class name,<br>
      but AFAIK the rule name is not available from the GetCapabilities<br>
      <br>
      don't ?<br>
      <br>
      A.<br>
      <br>
      On 03/01/2014 15:27, Alessandro Pasotti wrote:<br>
    </div>
    <blockquote
cite="mid:CAL5Q6710cM2rEHY59z6J_gPvdAqB19GkZoWy0bNw2cxD+buR-g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">2014/1/3 Yves Jacolin <span
              dir="ltr"><<a moz-do-not-send="true"
                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 moz-do-not-send="true"
                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 moz-do-not-send="true" href="http://www.itopen.it">www.itopen.it</a>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>