Distance between 2 Lat/Longs

Feb 17, 2010 at 4:04 PM

I found, and will use, if I don't find something else, this method for calculating the distance between 2 lat longs.

[Credits to John Bowen.  Reference:  http://blog.gobowen.com/2005/06/29/DistanceBetweenTwoGPSPointsUsingC.aspx ]

Is there a method for this in SharpMap?


Feb 17, 2010 at 4:36 PM

Hi Frank, you can project the points onto a planar coordinate system and then distance will be in a linear unit. BTW just to aid in your searching the term for the function for distance between points on a spehere is Haversine formula see http://en.wikipedia.org/wiki/Haversine_formula cheers jd