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).

>Perhaps a different usage of spatialite driver between qgis desktop and qgis-server ?

QGIS server uses the public API, so it should be exactly the same usage. Must be some other difference (libspatialite version?)

Regards,
Marco

On 13.02.2014 23:34, Andrea Peri wrote:
Hi,
I partially resolved.

The framework I sued will allow me bypass the getcapabilities phase and go directly to the getmap phase. Initizally also the getmap phase seem to be too slow, but after some try I notice that a slow bottleneck is the change of SRS. So fixing the SRS to the same of the dataset will gain a bit of speed and now the time to wait is quite acceptable. The strange is that the qgis desktop on my notebook , using the same project and the same datasets is more, more speeder than my server where there is the qgis-server.

We use a spatialite db.
Perhaps a different usage of spatialite driver between qgis desktop and qgis-server ?
Actually I don't know.

Regards,
Andrea.



2014-02-13 11:30 GMT+01:00 Andrea Peri <[email protected] <mailto:[email protected]>>:

    Hi I'm trying to publish with qgis.server a project with some huge
    dayaset. Actually the getcapabilities tale about 40 sec to return.
    I suspect that QS try always to recalc the box of every layer.
    Is confirmed that qgis.server recompute always the box for every
    request ?
    If confirmed, There is an option to avoid this ?

    THX,
    Andrea




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


_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user


--
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
[email protected] http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to