<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    When need to add a new wms layer is preferrable to avoid to use the
    cache but, instead, do a new getcapabilities request and list the
    layers as resulted by the xml response .<br>
    Also I guess a the time lost is not only the request/response time,
    but also the parsing time of the response.<br>
    A cache do not help on this.<br>
    <br>
    The question is strictly referred to the open project time.<br>
    <br>
    Also as reported yesterday.<br>
    If I check the option "Ignore GetMap/GetTitle URI reported in
    capabilities"<br>
    where qgis store the getmap/getfeatureinfo/getlegendgraphics urls ?<br>
    They seem to be no store no where.<br>
    So it can only use the unique url stored in the datasource tag.<br>
    These mean that qgis assume the url are the same for all three
    requests.<br>
    This could be reasonable.<br>
    But in this situation, QGIS do however a getcapabilities request.<br>
    <br>
    I don't understand this.<br>
    <br>
    So my dubt is that the getcapabilites request at startup of a
    project is really unuseful.<br>
    If this is the question perhaps also a cache would be only a
    redundant overstructure .<br>
    <br>
    A.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Il 06/12/2015 12:35, kimaidou ha
      scritto:<br>
    </div>
    <blockquote
cite="mid:CAMKXKO6mhQzdL_b7u3y4HnUxPzRaCB8ECpHJjeJ2rwJ9D6PzvA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi all<br>
              <br>
            </div>
            Why not "just" caching the getCapabilities response for the
            current QGIS session ? This way, if you have 100 layers
            coming from the same WMS server, only one request will be
            made when opening the project and the response will be
            stored in cache and used for other layers.<br>
            <br>
          </div>
          Please open a feature request in the QGIS hub and attach your
          project for further tests.<br>
          <br>
        </div>
        Michaël<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-12-06 1:01 GMT+01:00 Andrea Peri <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">For who is
            interest to test the opening issue on wms layer.<br>
            This is the link to retrieve the porject I'm using.<br>
            It is a project for qgis 2.12 using only wms layers.<br>
            The time to open is about 7 minutes.<br>
            <br>
            <a moz-do-not-send="true"
              href="https://www.dropbox.com/s/he85dwlluvcv4rw/wms_project.zip?dl=0"
              rel="noreferrer" target="_blank">https://www.dropbox.com/s/he85dwlluvcv4rw/wms_project.zip?dl=0</a><br>
            <span class="HOEnZb"><font color="#888888"><br>
                A.<br>
              </font></span>
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                2015-12-05 23:58 GMT+01:00 aperi2007 <<a
                  moz-do-not-send="true"
                  href="mailto:aperi2007@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a></a>>:<br>
                > Hi,<br>
                > I try to change the qgis project setting for the
                wms url the parameter:<br>
                ><br>
                > "Ignore GetMap/GetTitle URI reported in
                capabilities"<br>
                ><br>
                ><br>
                > But the sniffer report me that the qgis is still
                doing the getcapabilities<br>
                > request at start of project.<br>
                ><br>
                > If the getcapability reported url is to be ignored
                , why it is still calling<br>
                > the getcapabilities at startup ?<br>
                ><br>
                > A.<br>
                ><br>
                ><br>
                ><br>
                ><br>
                > Il 05/12/2015 23:45, aperi2007 ha scritto:<br>
                ><br>
                > Hi Jurgen,<br>
                ><br>
                > I know that the getmap url, getfeatureinfo ulr and
                getlegendgraphics url<br>
                > couldbe significative different from the main url
                for the getcapability<br>
                > request.<br>
                > But when choose the layer I guess in the project
                was stored the three url.<br>
                > Infact I see in the setting windows for new wms
                service is available the<br>
                > option<br>
                > "Ignore GetMap/GetTitle URI reported in
                capabilities"<br>
                ><br>
                > This mean that if I choose this option , it should
                avoid to read and parse<br>
                > the getcapabilities url to retrieve the urls and
                this also mean (i guess)<br>
                > that the url stored are the direct url for<br>
                > getmap/getlegendgraphics/getfeatureinfo not for the
                getcapabilities.<br>
                ><br>
                > I check in the qgis project and I'm not able to
                understand if the url used<br>
                > is for the getcapabilites or for the getmap
                request.<br>
                > Infact our project use the same url for all.<br>
                ><br>
                ><br>
                >
<datasource>crs=EPSG:3003&amp;dpiMode=all&amp;featureCount=10&amp;format=image/png&amp;layers=r_toscan_cst_fogli&amp;styles=&amp;url=<a
                  moz-do-not-send="true"
href="http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmscastore"
                  rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmscastore">http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmscastore</a></a></datasource><br>
                ><br>
                ><br>
                ><br>
                >
<datasource>crs=EPSG:3003&amp;format=image/png&amp;layers=lett_c_aree_tutelate&amp;styles=default&amp;url=<a
                  moz-do-not-send="true"
href="http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmspiapae%26version%3D1.3.0%26map_resolution%3D91%26map_mnt%3Dfotovolt"
                  rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmspiapae%26version%3D1.3.0%26map_resolution%3D91%26map_mnt%3Dfotovolt">http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmspiapae%26version%3D1.3.0%26map_resolution%3D91%26map_mnt%3Dfotovolt</a></a></datasource><br>
                ><br>
                > A.<br>
                ><br>
                > Il 05/12/2015 23:00, Jürgen E. Fischer ha scritto:<br>
                ><br>
                > Hi Andrea,<br>
                ><br>
                > On Sat, 05. Dec 2015 at 21:34:10 +0100, Andrea Peri
                wrote:<br>
                ><br>
                > But when I open a project where the wms layer are
                just added why do a<br>
                > getcapabilites request for every wms layer in it ?<br>
                ><br>
                > The capabilities provide the urls for all the other
                requests (sometimes<br>
                > pointing to other servers and sometimes even wrong
                - hence the ignoreUrl<br>
                > options).<br>
                ><br>
                ><br>
                > Jürgen<br>
                ><br>
                ><br>
                ><br>
                > _______________________________________________<br>
                > Qgis-user mailing list<br>
                > <a moz-do-not-send="true"
                  href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
                > List info: <a moz-do-not-send="true"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                  rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                > Unsubscribe: <a moz-do-not-send="true"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                  rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                ><br>
                ><br>
                ><br>
                <br>
                <br>
                <br>
              </div>
            </div>
            <span class="im HOEnZb">--<br>
              -----------------<br>
              Andrea Peri<br>
              . . . . . . . . .<br>
              qwerty àèìòù<br>
              -----------------<br>
            </span>
            <div class="HOEnZb">
              <div class="h5">_______________________________________________<br>
                Qgis-user mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
                List info: <a moz-do-not-send="true"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                  rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                Unsubscribe: <a moz-do-not-send="true"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                  rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>