[Gfoss] bounding box postgis
Luca Delucchi
lucadeluge a gmail.com
Gio 29 Maggio 2008 13:06:04 CEST
Il giorno gio, 29/05/2008 alle 02.13 -0700, Salvator*eL*arosa ha
scritto:
> Prima soluzione:
>
> create table osm_portofino with oids as
> select the_geom from tabella_con_tutti_i_dati
> where the_geom && SetSRID('BOX3D(xmin ymin,xmax ymax)'::box3d,23033);
>
Ecco è questo che cercavo...l'ho provato è funziona benissimo!
> Seconda soluzione (se hai a disposizione i limiti dell'area di Portofino
> come shp o tabella):
>
> create table test1 with oids as
>
> select intersection(r.the_geom, l.the_geom) as geometry,
>
> r.numero, r.tipo, r.classe >>>>>>>>>>>>>>>>>>tutti i campi della tabella "r"
> che ti servono
>
> from table1 as r, table2 as l
>
> where r.the_geom && l.the_geom
>
> and intersects(r.the_geom, l.the_geom)
>
> and l.comune ='Portofino';
>
mancandomi i dati non potevo seguire questa soluzione che conoscevo ;)
>
> Fammi sapere.....ho scritto con fretta!
>
> Ciao
>
>
> -----
> Salvatore Larosa
> GPG: 0xE504BBE2 (FP: D9B2 CA87 81CD 1B91 E24D 3B42 D0F7 FA01 E504 BBE2)
Grazie mille
Luca
Maggiori informazioni sulla lista
Gfoss