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

aperi2007 aperi2007 at gmail.com
Sun Dec 6 05:31:52 PST 2015


Hi,

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 .
Also I guess a the time lost is not only the request/response time, but 
also the parsing time of the response.
A cache do not help on this.

The question is strictly referred to the open project time.

Also as reported yesterday.
If I check the option "Ignore GetMap/GetTitle URI reported in capabilities"
where qgis store the getmap/getfeatureinfo/getlegendgraphics urls ?
They seem to be no store no where.
So it can only use the unique url stored in the datasource tag.
These mean that qgis assume the url are the same for all three requests.
This could be reasonable.
But in this situation, QGIS do however a getcapabilities request.

I don't understand this.

So my dubt is that the getcapabilites request at startup of a project is 
really unuseful.
If this is the question perhaps also a cache would be only a redundant 
overstructure .

A.



Il 06/12/2015 12:35, kimaidou ha scritto:
> Hi all
>
> 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.
>
> Please open a feature request in the QGIS hub and attach your project 
> for further tests.
>
> Michaël
>
> 2015-12-06 1:01 GMT+01:00 Andrea Peri <aperi2007 at gmail.com 
> <mailto:aperi2007 at gmail.com>>:
>
>     For who is interest to test the opening issue on wms layer.
>     This is the link to retrieve the porject I'm using.
>     It is a project for qgis 2.12 using only wms layers.
>     The time to open is about 7 minutes.
>
>     https://www.dropbox.com/s/he85dwlluvcv4rw/wms_project.zip?dl=0
>
>     A.
>
>
>     2015-12-05 23:58 GMT+01:00 aperi2007 <aperi2007 at gmail.com
>     <mailto:aperi2007 at gmail.com>>:
>     > Hi,
>     > I try to change the qgis project setting for the wms url the
>     parameter:
>     >
>     > "Ignore GetMap/GetTitle URI reported in capabilities"
>     >
>     >
>     > But the sniffer report me that the qgis is still doing the
>     getcapabilities
>     > request at start of project.
>     >
>     > If the getcapability reported url is to be ignored , why it is
>     still calling
>     > the getcapabilities at startup ?
>     >
>     > A.
>     >
>     >
>     >
>     >
>     > Il 05/12/2015 23:45, aperi2007 ha scritto:
>     >
>     > Hi Jurgen,
>     >
>     > I know that the getmap url, getfeatureinfo ulr and
>     getlegendgraphics url
>     > couldbe significative different from the main url for the
>     getcapability
>     > request.
>     > But when choose the layer I guess in the project was stored the
>     three url.
>     > Infact I see in the setting windows for new wms service is
>     available the
>     > option
>     > "Ignore GetMap/GetTitle URI reported in capabilities"
>     >
>     > This mean that if I choose this option , it should avoid to read
>     and parse
>     > the getcapabilities url to retrieve the urls and this also mean
>     (i guess)
>     > that the url stored are the direct url for
>     > getmap/getlegendgraphics/getfeatureinfo not for the getcapabilities.
>     >
>     > I check in the qgis project and I'm not able to understand if
>     the url used
>     > is for the getcapabilites or for the getmap request.
>     > Infact our project use the same url for all.
>     >
>     >
>     >
>     <datasource>crs=EPSG:3003&dpiMode=all&featureCount=10&format=image/png&layers=r_toscan_cst_fogli&styles=&url=http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmscastore</datasource>
>     >
>     >
>     >
>     >
>     <datasource>crs=EPSG:3003&format=image/png&layers=lett_c_aree_tutelate&styles=default&url=http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map%3Dwmspiapae%26version%3D1.3.0%26map_resolution%3D91%26map_mnt%3Dfotovolt</datasource>
>     >
>     > A.
>     >
>     > Il 05/12/2015 23:00, Jürgen E. Fischer ha scritto:
>     >
>     > Hi Andrea,
>     >
>     > On Sat, 05. Dec 2015 at 21:34:10 +0100, Andrea Peri wrote:
>     >
>     > But when I open a project where the wms layer are just added why
>     do a
>     > getcapabilites request for every wms layer in it ?
>     >
>     > The capabilities provide the urls for all the other requests
>     (sometimes
>     > pointing to other servers and sometimes even wrong - hence the
>     ignoreUrl
>     > options).
>     >
>     >
>     > Jürgen
>     >
>     >
>     >
>     > _______________________________________________
>     > Qgis-user mailing list
>     > Qgis-user at lists.osgeo.org <mailto: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
>     >
>     >
>     >
>
>
>
>     --
>     -----------------
>     Andrea Peri
>     . . . . . . . . .
>     qwerty àèìòù
>     -----------------
>     _______________________________________________
>     Qgis-user mailing list
>     Qgis-user at lists.osgeo.org <mailto: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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20151206/bad2868f/attachment.html>


More information about the Qgis-user mailing list