This project has moved and is read-only. For the latest updates, please go here.

Calculate distance

Topics: General Topics
Nov 29, 2006 at 4: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 6: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 25, 2007 at 12:09 AM
Edited Apr 25, 2007 at 3: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 8:17 PM
Not sure if this would help, but have you checked out the MapPoint Web Service: