[Gfoss] bounding box postgis

Emilia Venturato venturato a faunalia.it
Mar 27 Maggio 2008 08:23:21 CEST


Luca Delucchi ha scritto:

> Secondo problema è su come realizzare la bounding box su postgis, ho
> cercato un po' sul manuale ma non ho capito bene cosa usare...


Dipende da cosa vuoi fare con la bounding box.
Comunque di funzioni ce ne sono varie tra cui penso possano servirti queste:

ST_box2d(geometry)

     Returns a BOX2D representing the maximum extents of the geometry.

ST_expand(geometry, float)

     This function returns a bounding box expanded in all directions 
from the bounding box of the input geometry, by an amount specified in 
the second argument. Very useful for distance() queries, to add an index 
filter to the query.

ciao
lia
-- 
Emilia Venturato
email+jabber: venturato a faunalia.it
www.faunalia.it
Tel: (+39) 347-2770007 Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy
http://www.faunalia.it/ev



Maggiori informazioni sulla lista Gfoss