[postgis-users] closest points of two polygons
Martin Davis
mbdavis at refractions.net
Wed Jun 13 14:11:56 PDT 2007
Yes, there is a JTS function which does this.
The deterimination of which two points are closest in two geometries is
computed as part of the distance operation. It just usually isn't
exposed. Should be an easy addition to make to PostGIS, I would think.
Robert Nuske wrote:
> Hi All,
>
> is there a way to get the closest points of two polygons?
> Basically the points on the polygons, which are used for the distance
> calculations.
>
> I couldn't find anything among the postgis-functions (which might be caused by
> my greenness) that would return the two closest points. But isn't there a
> function in geos/JTS doing just that.
>
> I hope somebody can suggest a nice and easy way to obtain the points on the
> boundaries of two polygons with the shortest distance.
>
> Any help is more than welcome.
>
> cheers,
> robert
>
>
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022
More information about the postgis-users
mailing list