On the topic itself, this is doable, but note that distance does not
calculate the shortest distance points (sometimes they are between
vertices, note) it just calculates the segmentA/segmentB distances and
finds the minimum.
This is how the JTS algorithm works as well. It is possible to identify the points which determine the shortest distance, and it's not too hard to do. I added this to JTS once I realized that this is quite useful for visualizing the distance.

--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to