[Gfoss] Comparazione di due poligoni vettoriali: è possibile?

Sandro Santilli strk a keybit.net
Lun 1 Ott 2012 12:29:05 CEST


On Mon, Oct 01, 2012 at 12:23:27PM +0200, Luca Mandolesi wrote:

> Diventerebbe così se dovessi confrontare due poligoni della medesima
> tabella ma con id diversi?
> 
> SELECT st_hausdorffdistance(SELECT geom_1 FROM tab_1 WHERE 'ID' = 1,
> SELECT geom_1 FROM tab_1 WHERE 'ID' = 2)

SELECT ST_HausdorffDistance(a.geom, b.geom) FROM tab_1 a, tab_1 b
 WHERE a.id = 1 and b.id = 2;

--strk;

 http://www.cartodb.com - Map, analyze and build applications with your data

                                       ~~ http://strk.keybit.net 



Maggiori informazioni sulla lista Gfoss