vmachuca-img-com-br-esridist

Polyline Calculate Length 2D

Discussion created by vmachuca-img-com-br-esridist on Sep 21, 2012
Latest reply on Sep 24, 2012 by MBranscomb-esristaff
Hi,

In ArcGIS Runtime for Android exist a method called calculateLength2D in Polyline. In WPF API does not exist, what can I do?

I want to do something like this in C#:

(Android code)
Polyline polyline = new Polyline();
polyline.startPath(from.getX(), from.getY());
polyline.lineTo((float) to.getX(), (float) to.getY());        
return polyline.calculateLength2D();

Outcomes