[Qgis-user] Qgis-server recompute always the layer bbox ?

Andrea Peri aperi2007 at gmail.com
Fri Feb 14 00:46:20 PST 2014


100 layers are not really many.

As example: you can think to our Land-Usability wms.
It return evenry single code as a layer.
And also grouped layers.
And we have 2 year (2007 and 2010) in the same wms service.


http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsucs&service=wms&request=GetCapabilities

It is just now more then 100 layers.

Actually it is served with a Mapserverand 1 only spatialite that host all
the dataset.
I guess actually it was impossible to server with a QGIS-Server.

I don't understand why the qgis-server eed to calculate always the bbox.
In the server project windows,
qgis ask for the published bbox.
Why it don't use it as bbox rather than calculate it on every request ?

The FastCGI don't help really.
In a publishing environment every few hour the instances are restated to
removed zombi process.
This mean that every few hours the FastCGI are emptied and reloaded.
A fastcgi environment mean to load 20 instances of QGIS-server and every of
them do them own elaboration .
As the bbox calculation for every layer.

GASP.
The start could ask about one hours and more.

Also another problem with the fastcig is that when
I change something on a project I need to restart to Web instances to
dismiss the actual project and reload the new.

So every change in a qgis project need a restart of all proccess (20 and so
on in a fastcgi enviroment) every with a slow bbox calculation phase.

mmhh...

:/



2014-02-14 9:13 GMT+01:00 G. Allegri <giohappy at gmail.com>:

>
>
>
> 2014-02-14 Marco Hugentobler <marco.hugentobler at sourcepole.ch>:
>
>  Hi Andrea
>>
>>
>> >I suspect that QS try always to recalc the box of every layer.
>>
>> QGIS server caches layers (up to 100, but that can be enhanced using the
>> environment variable MAX_CACHE_LAYERS).  Furthermore, the GetCapabilities
>> documents are cached (so no recalculation if using FastCGI).
>>
>>
> Thanks Marco, you confirmed what I told Andrea.
> It would be a good enhancement if caching could be done in a persitent
> manner (out of memory). We could consider, in the future, to use memcache
> or something similar.
>
> giovanni
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140214/124aec9e/attachment.html>


More information about the Qgis-user mailing list