Calculate distance of a polyline?

2279
2
09-25-2011 10:44 PM
Labels (1)
linusang
New Contributor II
Hi, how can i calculate the distance of an arbitrary polyline?
0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
You can either use Pythagoras on each line segment and sum them up if your coordinate system is "flat", or use Vicenty's formula on the line segments if your coordinates are spherical (ie longitude/latitude). Or lastly you could use the Geometry service: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Lengths
0 Kudos
linusang
New Contributor II
i'm using the WebMercator, what do you suggest? And also if i would like to get the surface distance, how can I do it?
0 Kudos