[postgis-users] distance between 2 polygons

2012-02-16 Thread Steve . Toutant
Hi
For each polygon I need to find the nearest polygon. I used 
ST_Distance(geometry, geometry)
I succesfully did it but I want to make sure to interpret the result 
correctly
Does A distance of 0 mean that the polygons touch each other or it means 
that their bounding box touch each other?
What does a distance of 100 mean?. Is it the shortest distance between the 
2 polygons or the distance between some random point on the polygon or on 
the surface?

thanks
Steve___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] distance between 2 polygons

2012-02-16 Thread Nicklas Avén

Hallo


Does A distance of 0 mean that the polygons touch each other or it 
means that their bounding box touch each other?
From ST_Distance distance 0 menas that they are touching or overlapping 
each other


What does a distance of 100 mean?. Is it the shortest distance between 
the 2 polygons or the distance between some random point on the 
polygon or on the surface?


It is the shortest distance between two polygons. You can use 
ST_ShortestLine to find what that two points (first and last point in 
the resulting line)


HTH
Nicklas




thanks
Steve


___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users