<div dir="ltr">Estimated extent works by looking at the table stats. If you had some extra data and then delete it, the stats might still reflect the original extent of the full table. Re-running ANALYZE might refresh them. </div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 21, 2016 at 5:07 AM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I got strange estimated extent when working with data in S-JTSK<br>
(EPSG:5514). ST_EstimatedExtent() returns completely wrong extent:<br>
<br>
select st_estimated_extent('ruian', 'kraje', 'geom');<br>
BOX(-909107.8125 -1233432.375,4522.92431640625 6136.4794921875)<br>
<br>
The correct extent is:<br>
<br>
select st_extent(geom) from ruian.kraje;<br>
BOX(-904584.86 -1227295.83,-431726.85 -935236.59)<br>
<br>
It's visible that East and North coordinates are completely wrong.<br>
This is also probably reason why 'Zoom to layer' in QGIS do not work<br>
properly.<br>
<br>
Any idea? Thanks a lot! Martin<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Martin Landa<br>
<a href="http://geo.fsv.cvut.cz/gwiki/Landa" rel="noreferrer" target="_blank">http://geo.fsv.cvut.cz/gwiki/<wbr>Landa</a><br>
<a href="http://gismentors.cz/mentors/landa" rel="noreferrer" target="_blank">http://gismentors.cz/mentors/<wbr>landa</a><br>
______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a></font></span></blockquote></div><br></div>