<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-02-23 16:55 GMT+01:00 Régis Haubourg <span dir="ltr"><<a href="mailto:regis.haubourg@eau-adour-garonne.fr" target="_blank">regis.haubourg@eau-adour-garonne.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Alessandro Pasotti-2 wrote<br>
<span class="">> The answer from strk  makes sense to me, I might be wrong but calculating<br>
> estimated metadata on a query doesn't make much sense to me.<br>
<br>
</span>Oh, I read too fast Strk's comment. Sorry for that. I won't explore that<br>
dead end no more.<br>
Another idea, maybe autodiscovering extent on data is a good thing for<br>
desktop, less for server. Mapserver takes extent from mapfile, not from<br>
data. Could we imagine adding options to force extents from project<br>
properties and prevent qgis server from asking that to postgis? Such queries<br>
are BTW  very consuming thing on big datasets and I can't imagine big<br>
servers with many sessions keeping on querying postgis geometries just to<br>
get such extent.<br>
Régis<br>
<br clear="all"></blockquote></div><br><br></div><div class="gmail_extra">Yes, that sounds a nice idea.<br><br></div><div class="gmail_extra">We could create a new config option for that and cache the extents.<br></div><div class="gmail_extra">I'm not sure about how deep into the providers this would lead us, or if it can be better done into the server itself, but worth exploring.<br><br></div><div class="gmail_extra">You should definitely add a feature request.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>