[Gfoss] PostGis Manager Extent: (unknown)
Sandro Santilli
strk a keybit.net
Gio 1 Dic 2011 19:25:48 CET
On Thu, Dec 01, 2011 at 05:34:47PM +0100, Giuseppe Sucameli wrote:
> Ciao a tutti,
> PG_manager (e anche DB_manager) recupera tale valore tramite:
>
> SELECT xmin(%(ext)s), ymin(%(ext)s), xmax(%(ext)s), ymax(%(ext)s)
>
> con %(ext)s uguale a
>
> estimated_extent(<schema>, <table>, <geom>)
>
> Si potrebbe aggiungere un link per usare ST_Extent, un po' come viene
> fatto per rows (estimation o counted).
Eh... estimated_extent lancia un'eccezione se non ci sono
le statistiche raccolte. C'e' una proposta di cambiare il
comportamento in modo che torni null [1].
Inoltre estimated_extent non funziona con le view [2].
[1] http://trac.osgeo.org/postgis/ticket/877
[2] http://trac.osgeo.org/postgis/ticket/510
Andrea, controlli il risultato di estimated_extent ?
Giuseppe: in quali occasioni l'extent di un layer in qgis
viene aggiornato ? C'e' modo di forzarne il ricalcolo ?
--strk;
,------o-.
| __/ | Sign the pledge for PostGIS-2.0 Topology !
| / 2.0 | http://www.pledgebank.com/postgistopology
`-o------'
Maggiori informazioni sulla lista
Gfoss