[Gfoss] bounding box postgis
Luca Delucchi
lucadeluge a gmail.com
Mer 28 Maggio 2008 20:27:10 CEST
Il giorno mar, 27/05/2008 alle 08.23 +0200, Emilia Venturato ha scritto:
> 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.
Voglio estrapolare i valori di una tabella all'interno della 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.
i comandi li avevo visti, pių che altro non capisco come inserire i
valori della bounding box. Potrebbe essere anche SnapToGrid(geometry,
originX, originY, sizeX, sizeY) o sbaglio?
Il comando dovrebbe essere qualcosa del genere
CREATE TABLE nometabella AS SELECT * FROM tabella WHERE .....
>
> ciao
> lia
ciao
Luca
Maggiori informazioni sulla lista
Gfoss