Calculate distance

Topics: General Topics
Nov 29, 2006 at 3:18 PM

I have to calculate the nearest distance from some point to LineString.
Can anybody to give me the idea how to do it?

Nov 30, 2006 at 5:29 AM
You can just use simple trigometric formnulas to find the distance between a point and a line-segment (Google can help you out).
Apr 24, 2007 at 11:09 PM
Edited Apr 25, 2007 at 2:27 PM
Hi guys..
I just started using sharpMap and i need to know this.
I have a shape map of a particular street. Now i need to calculate the shortest distance (by road) from one particular place to another and if possible display the PATH.I dont want to use any of teh tools.I prefer having a code for this.Anyone can tell me how i can go about it?thanks .
Apr 25, 2007 at 7:17 PM
Not sure if this would help, but have you checked out the MapPoint Web Service: