<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi jurgen.<br>
    <br>
    I have don more test using a sniffer.<br>
    As report in this <br>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/pipermail/qgis-user/2015-December/034593.html">https://lists.osgeo.org/pipermail/qgis-user/2015-December/034593.html</a><br>
    <br>
    The qgis do not do any request getlegendgraphics at startup .<br>
    This is good and well done.<br>
    <br>
    Insteal the problem is on the getcapabilites requests.<br>
    They are repeated the same for every single wms layer indipendently
    if it is coming from the same wms service or not.<br>
    <br>
    So for a service with 10 layers (we have a wms service with 100+
    layers) and these layrs are added to a qgis project <br>
    one by one the qgis do 100 times the same getcapabilites requests
    and 100 time parse the response.<br>
    <br>
    A good enhancement for me could be to do one single getcapabilities
    request for every distinct wms service used in the project instead
    that one for every layer to avoid this waste redundancy of work.<br>
    <br>
    A.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Il 05/12/2015 16:32, Jürgen E. Fischer
      ha scritto:<br>
    </div>
    <blockquote cite="mid:20151205153250.GC2252@norbit.de" type="cite">
      <pre wrap="">Hi Andrea,

On Sat, 05. Dec 2015 at 12:54:29 +0100, Andrea Peri wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">The qgs is calling the same getlegendgraphics 10 times instead of one
only time and reusing the same response for the other 9 wms layers.
</pre>
      </blockquote>
      <pre wrap="">
Isn't the request different for each layer?   It should have a LAYERS parameter
for each and if contextual legend is enabled even a bounding box.  So that the
WMS server can produce a legend for the individual layers and maybe only for
the things that are visible in the extent and scale.


Jürgen

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>