<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">Il 05/12/2015 21:52, Brent Wood ha
      scritto:<br>
    </div>
    <blockquote
      cite="mid:1728432523.436394.1449348774019.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:verdana, helvetica, sans-serif;font-size:16px">
        <div id="yui_3_16_0_1_1449264236374_60165">Can we assume a WMS
          service is unchanging? While some may well be, that is not a
          safe </div>
      </div>
    </blockquote>
    <br>
    Of course no. Is no right assume that a wms service in unchanging.<br>
    <br>
    <blockquote
      cite="mid:1728432523.436394.1449348774019.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:verdana, helvetica, sans-serif;font-size:16px">
        <div id="yui_3_16_0_1_1449264236374_60165">assumption to make,
          so running through the getcapabilities each time a project is
          opened seems reasonable.</div>
        <div id="yui_3_16_0_1_1449264236374_59996"><br>
        </div>
      </div>
    </blockquote>
    <br>
    I don't understand why.<br>
    <br>
    <blockquote
      cite="mid:1728432523.436394.1449348774019.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:verdana, helvetica, sans-serif;font-size:16px">
        <div id="yui_3_16_0_1_1449264236374_59997">I'd assume that
          within a session, once a layer has been successfully accessed
          & retrieved it is no longer necessary, but a project may
          not have been opened for months.</div>
        <div id="yui_3_16_0_1_1449264236374_60266"><br>
        </div>
      </div>
    </blockquote>
    <br>
    The getcapabilites could not help on this.<br>
    The wms layer could have change the style and the style actually
    used is no more available.<br>
    The wms layer himself could have the name changed and so is no more
    available in the getcapabilities.<br>
    <br>
    How can the getcapabilites don helpin these and in other situation ?<br>
    <br>
    The only real help is to verify if the layer is still available with
    its style.<br>
    But is more easy and efficient to wait and when the user Swtich-on
    the wms layer the first getmap if is failing return an xml exception
    that say all the response need to understand that the wms layer in
    the project is no more usable.<br>
    <br>
    Instead of doing a getcapabilitis at the startup always.<br>
    <br>
    <blockquote
      cite="mid:1728432523.436394.1449348774019.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:verdana, helvetica, sans-serif;font-size:16px">
        <div id="yui_3_16_0_1_1449264236374_60873">A compromise could
          be, on opening a project with WMS layers, to (optionally) ask
          the user whether to validate WxS layers before opening them,
          allowing them to speed up the operation if they so desire. Or
          to have this as a project setting the user can toggle, but not
          something that should be disabled permanently.</div>
        <div id="yui_3_16_0_1_1449264236374_60906"><br>
        </div>
      </div>
    </blockquote>
    <br>
    The issue is when a project has many and more wms layer.<br>
    So ask to the user the validate one by one all the wms layer is too
    boring for a user.<br>
    Also ask to a user to do a similar ooperation ned to have an user
    that undersand what this mean.<br>
    Not all the gis user are capable to understand what mean validate an
    wms layer.<br>
    <br>
    <blockquote
      cite="mid:1728432523.436394.1449348774019.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:verdana, helvetica, sans-serif;font-size:16px">
        <div id="yui_3_16_0_1_1449264236374_60907">my 02c...</div>
        <div><br>
        </div>
        <div id="yui_3_16_0_1_1449264236374_60908">Brent Wood<br>
        </div>
        <div id="yui_3_16_0_1_1449264236374_60909"><br>
        </div>
        <div id="yui_3_16_0_1_1449264236374_60910"><br>
        </div>
        <div id="yui_3_16_0_1_1449264236374_59703"><span></span></div>
        <br>
        <div id="yui_3_16_0_1_1449264236374_59494" style="font-family:
          verdana, helvetica, sans-serif; font-size: 16px;">
          <div id="yui_3_16_0_1_1449264236374_59493" style="font-family:
            HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida
            Grande, sans-serif; font-size: 16px;">
            <div id="yui_3_16_0_1_1449264236374_59492" dir="ltr">
              <hr id="yui_3_16_0_1_1449264236374_60911" size="1"> <font
                id="yui_3_16_0_1_1449264236374_59501" size="2"
                face="Arial"> <b><span style="font-weight:bold;">From:</span></b>
                Andrea Peri <a class="moz-txt-link-rfc2396E" href="mailto:aperi2007@gmail.com"><aperi2007@gmail.com></a><br>
                <b><span style="font-weight: bold;">To:</span></b>
                aperi2007 <a class="moz-txt-link-rfc2396E" href="mailto:aperi2007@gmail.com"><aperi2007@gmail.com></a>; Jürgen E.
                <a class="moz-txt-link-rfc2396E" href="mailto:jef@norbit.de"><jef@norbit.de></a>; qgis-user
                <a class="moz-txt-link-rfc2396E" href="mailto:qgis-user@lists.osgeo.org"><qgis-user@lists.osgeo.org></a> <br>
                <b><span style="font-weight: bold;">Sent:</span></b>
                Sunday, December 6, 2015 9:34 AM<br>
                <b><span style="font-weight: bold;">Subject:</span></b>
                Re: [Qgis-user] QGIS project slow to open when too much
                wms layers<br>
              </font> </div>
            <div id="yui_3_16_0_1_1449264236374_60229"
              class="y_msg_container"><br>
              Hi Sandro,<br clear="none">
              <br clear="none">
              I study better the question and perhas this is more a
              strange issue.<br clear="none">
              Infact my doub is why is necessary a getCapability request
              when open a project ?<br clear="none">
              <br clear="none">
              The getcapabilities is need for list the layers, choose
              the style,<br clear="none">
              choose the srs and retrieve the bounding-box of the layer.<br
                clear="none">
              All this action are need only when a new wms layer is to
              add at the<br clear="none">
              qgis project.<br clear="none">
              So these are all do when I open the WMS add layer windows.<br
                clear="none">
              <br clear="none">
              But when I open a project where the wms layer are just
              added why do a<br clear="none">
              getcapabilites request for every wms layer in it ?<br
                clear="none">
              <br clear="none">
              This is the question.<br clear="none">
              <br clear="none">
              A.<br clear="none">
              <br clear="none">
              <br clear="none">
              2015-12-05 18:32 GMT+01:00 Sandro Santilli <<a
                moz-do-not-send="true" shape="rect"
                ymailto="mailto:strk@keybit.net"
                href="mailto:strk@keybit.net"><a class="moz-txt-link-abbreviated" href="mailto:strk@keybit.net">strk@keybit.net</a></a>>:<br
                clear="none">
              > On Sat, Dec 05, 2015 at 06:06:05PM +0100, aperi2007
              wrote:<br clear="none">
              ><br clear="none">
              >> <a moz-do-not-send="true" shape="rect"
href="https://lists.osgeo.org/pipermail/qgis-user/2015-December/034593.html"
                target="_blank">https://lists.osgeo.org/pipermail/qgis-user/2015-December/034593.html</a><br
                clear="none">
              ><br clear="none">
              > [..]<br clear="none">
              ><br clear="none">
              >> Insteal the problem is on the getcapabilites
              requests.<br clear="none">
              >> They are repeated the same for every single wms
              layer indipendently<br clear="none">
              >> if it is coming from the same wms service or not.<br
                clear="none">
              ><br clear="none">
              > [..]<br clear="none">
              ><br clear="none">
              >> A good enhancement for me could be to do one
              single getcapabilities<br clear="none">
              >> request for every distinct wms service used in
              the project instead<br clear="none">
              >> that one for every layer to avoid this waste
              redundancy of work.<br clear="none">
              ><br clear="none">
              > Sounds worth an enhancement ticket.<br clear="none">
              > A cache for capabilities request.<br clear="none">
              ><br clear="none">
              > --strk;<br clear="none">
              <br clear="none">
              <br clear="none">
              <br clear="none">
              -- <br clear="none">
              -----------------<br clear="none">
              Andrea Peri<br clear="none">
              . . . . . . . . .<br clear="none">
              qwerty àèìòù
              <div class="qtdSeparateBR"><br>
                <br>
              </div>
              <div class="yqt8445091751" id="yqtfd17192"><br
                  clear="none">
                -----------------<br clear="none">
                _______________________________________________<br
                  clear="none">
                Qgis-user mailing list<br clear="none">
                <a moz-do-not-send="true" shape="rect"
                  ymailto="mailto:Qgis-user@lists.osgeo.org"
                  href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br
                  clear="none">
                List info: <a moz-do-not-send="true" shape="rect"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br
                  clear="none">
                Unsubscribe: <a moz-do-not-send="true" shape="rect"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
              <br>
              <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>