<html><head></head><body><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 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 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 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 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" face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Andrea Peri <aperi2007@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> aperi2007 <aperi2007@gmail.com>; Jürgen E. <jef@norbit.de>; qgis-user <qgis-user@lists.osgeo.org> <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 shape="rect" ymailto="mailto:strk@keybit.net" href="mailto:strk@keybit.net">strk@keybit.net</a>>:<br clear="none">> On Sat, Dec 05, 2015 at 06:06:05PM +0100, aperi2007 wrote:<br clear="none">><br clear="none">>> <a 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 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 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 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></body></html>