Calculate the distance between a point and a line segment on an ellipsoid (or WGS84 coordinates)?
Posted
by Jochen
on Stack Overflow
See other posts from Stack Overflow
or by Jochen
Published on 2010-03-31T22:06:23Z
Indexed on
2010/04/03
21:43 UTC
Read the original article
Hit count: 279
Hi,
I have a line segment AB between two WGS84 coordinates on the earth's surface (or, alternatively, on an ellipsoid), and need to calculate the distance between a point P and the point nearest to P that is on line segment AB. How can I do this?
Any help is greatly appreciated.
Regards, Jochen
© Stack Overflow or respective owner