[Qgis-user] QGIS project slow to open when too much wms layers

Andrea Peri aperi2007 at gmail.com
Sat Dec 5 03:54:29 PST 2015


Hi,

I test with a sniffer.
So I can exlude the GetLegendGraphics.
Infact it is not called at open project, but instead at open of the
legend folder.

Instead I see from the sniffer that the qgis is calling the
getcapabilites one time for every single wms layer.
This is a tremendous waste of time.
Infact a single wms server has more than one layer.
As example:
if a wms server has 10 layer and all of them are added at a project
like 10 distincts layer wms.
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.

Is this the explanation of this 5 minutes at the start up.

A.


2015-12-04 12:35 GMT+01:00 Bernhard Ströbl <bernhard.stroebl at jena.de>:
> I was just guessing what _might_ happen. Any chance you can check if QGIS
> sends GetLegendGraphics or GetCapabilities requests during these five
> minutes?
>
> Bernhard
>
>
> Am 04.12.2015 um 12:18 schrieb Andrea Peri:
>>
>> Oops !
>> I hope no.
>> :(
>>
>> AFAIK it should retrieve the legend image ONLY when I voluntary open
>> the legend in the tree.
>>
>> Before is often a waste of time.
>> Infact the legends in the wms is changing dipendently the scale of the
>> canvas, and retrieving several hundred of legend at an unuseful scale
>> is unusefult himself and a waste of time.
>>
>> A.
>>
>>
>>
>>
>>
>> 2015-12-04 12:10 GMT+01:00 Bernhard Ströbl <bernhard.stroebl at jena.de>:
>>>
>>> hi,
>>>
>>> maybe it tries to get the legend or the layer's bbox so you can zoom to
>>> it?
>>>
>>> just thoughts
>>>
>>> Bernhard
>>>
>>> Am 04.12.2015 um 12:06 schrieb Andrea Peri:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I have a project with some hundred of wms layers.
>>>>
>>>> All switch off.
>>>>
>>>> When I open the project I see it take about 5 minutes to connect all of
>>>> them.
>>>>
>>>> It try to connect to all the layers indipendendl if they are OFF or ON.
>>>>
>>>> Is this ok or an issue ?
>>>>
>>>> Thx,
>>>>
>>>
>>>
>>>
>>> __________ Information from ESET Mail Security, version of virus
>>> signature
>>> database 12670 (20151204) __________
>>>
>>> The message was checked by ESET Mail Security.
>>> http://www.eset.com
>>>
>>>
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>>
>
>
> __________ Information from ESET Mail Security, version of virus signature
> database 12670 (20151204) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>
>



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



More information about the Qgis-user mailing list