<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I have a question in this context (I thought I made ticket but cannot find it)<br>
What is the sense of setting the bounding box in OWS tab if it is always calculated to the sum of the bboxes of the layers in the project? IMHO setting the bbox in the project properties should override any calculation result.<br>
</blockquote><div><br></div><div>This happens for the combined extent, not for the single layer. In case you set it in the OWS tab the overall extent isn't calculated.</div><div><br></div><div>giovanni</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Background: One of my layers became empty because a user deleted the last record thus its bbox was calculated to be the whole earth resulting in QGIS server propagating the whole earth as bbox for this project.<br>
<br>
Bernhard<br>
<br>
Am 14.02.2014 10:34, schrieb Marco Hugentobler:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi Andrea, Giovanni<br>
<br>
QGIS Server doesn't calculate the bbox itself, but it queries the extent<br>
from the layers. So it can be that certain providers calculate the bbox<br>
(of course only if the layer / capabilities document is not cached).<br>
<br>
For a faster startup, having a persistent cache as Giovanni suggested<br>
might help.<br>
<br>
Regards,<br>
Marco<br>
<br>
On 14.02.2014 10:18, G. Allegri wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
<br>
    I don't understand why the qgis-server eed to calculate always the<br>
    bbox.<br>
    In the server project windows,<br>
    qgis ask for the published bbox.<br>
    Why it don't use it as bbox rather than calculate it on every<br>
    request ?<br>
<br>
<br>
Marco, correct me if I'm wrong.<br>
QGIS Server doesn't calculate the BBOX, it parses the layers extents<br>
from the .qgs project and then combine them to obtain the entire BBOX.<br>
The only operation it does is reprojecting the extents to WGS84 to<br>
create the EX_GeographicBoundingBox element.<br>
<br>
Anyway, in case the project advertises and extent, the combined extent<br>
won't be calculated, so in your case this phase shouldn't be the<br>
bottleneck...<br>
<br>
giovanni<br>
<br>
<br>
<br>
<br>
    The FastCGI don't help really.<br>
    In a publishing environment every few hour the instances are<br>
    restated to removed zombi process.<br>
    This mean that every few hours the FastCGI are emptied and reloaded.<br>
    A fastcgi environment mean to load 20 instances of QGIS-server and<br>
    every of them do them own elaboration .<br>
    As the bbox calculation for every layer.<br>
<br>
    GASP.<br>
    The start could ask about one hours and more.<br>
<br>
    Also another problem with the fastcig is that when<br>
    I change something on a project I need to restart to Web instances<br>
    to dismiss the actual project and reload the new.<br>
<br>
    So every change in a qgis project need a restart of all proccess<br>
    (20 and so on in a fastcgi enviroment) every with a slow bbox<br>
    calculation phase.<br>
<br>
    mmhh...<br>
<br>
    :/<br>
<br>
<br>
<br>
    2014-02-14 9:13 GMT+01:00 G. Allegri <<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a><br></div></div>
    <mailto:<a href="mailto:giohappy@gmail.com" target="_blank">giohappy@gmail.com</a>>>:<br>
<br>
<br>
<br>
<br>
        2014-02-14 Marco Hugentobler <<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.<u></u>ch</a><br>
        <mailto:<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@<u></u>sourcepole.ch</a>>>:<div class="im"><br>
<br>
            Hi Andrea<br>
<br>
<br>
            >I suspect that QS try always to recalc the box of every<br>
            layer.<br>
<br>
            QGIS server caches layers (up to 100, but that can be<br>
            enhanced using the environment variable<br>
            MAX_CACHE_LAYERS).  Furthermore, the GetCapabilities<br>
            documents are cached (so no recalculation if using FastCGI).<br>
<br>
<br>
        Thanks Marco, you confirmed what I told Andrea.<br>
        It would be a good enhancement if caching could be done in a<br>
        persitent manner (out of memory). We could consider, in the<br>
        future, to use memcache or something similar.<br>
<br>
        giovanni<br>
<br>
        ______________________________<u></u>_________________<br>
        Qgis-user mailing list<br></div>
        <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.<u></u>org</a>><div class="im">
<br>
        <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
<br>
    --<br>
    -----------------<br>
    Andrea Peri<br>
    . . . . . . . . .<br>
    qwerty ŕčěňů<br>
    -----------------<br>
<br>
<br>
<br>
<br>
--<br>
Giovanni Allegri<br>
<a href="http://about.me/giovanniallegri" target="_blank">http://about.me/<u></u>giovanniallegri</a><br>
Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a><br>
blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a><br>
</div></blockquote><div class="im">
<br>
<br>
--<br>
Dr. Marco Hugentobler<br>
Sourcepole -  Linux & Open Source Solutions<br>
Weberstrasse 5, CH-8004 Zürich, Switzerland<br>
<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.<u></u>ch</a>  <a href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a><br>
Technical Advisor QGIS Project Steering Committee<br>
<br>
<br>
<br></div>
__________ Information from ESET Mail Security, version of virus<br>
signature database 9421 (20140213) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><div class="im"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
<br>
<br></div>
__________ Information from ESET Mail Security, version of virus signature database 9421 (20140213) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
</blockquote>
<br>
-- <br>
Bernhard Ströbl<br>
Anwendungsbetreuer GIS<br>
<br>
Kommunale Immobilien Jena<br>
Am Anger 26<br>
07743 Jena<br>
<br>
Tel.: 03641 49- 5190<br>
E-Mail: <a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a><br>
Internet: <a href="http://www.kij.de" target="_blank">www.kij.de</a><br>
<br>
<br>
Kommunale Immobilien Jena<br>
Eigenbetrieb der Stadt Jena<br>
Werkleiter: Dr. Götz Blankenburg<br>
<br>
<br>
__________ Information from ESET Mail Security, version of virus signature database 9422 (20140214) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div>
<div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div></div>