How can we calculate the distance between two AGSPoints. Previously in runtime SDK 10.x the method `
distanceToPoint` is used,
as
float len = [agsPoint1 distanceToPoint: agsPoint2];
but i didn't find any related methods in runtime SDK 100.x.
Solved! Go to Solution.
Hello,
You can use `AGSGeometryEngine`'s
for simple planar distance between two points OR
to get the geodetic distance.
Hope this helps
Suganya
Hello,
You can use `AGSGeometryEngine`'s
for simple planar distance between two points OR
to get the geodetic distance.
Hope this helps
Suganya
Thank you SBaskaran-esristaff. Finally used as below:
return [AGSGeometryEngine geodeticDistanceBetweenPoint1:point1 point2:point2 distanceUnit:AGSLinearUnit.meters azimuthUnit:AGSAngularUnit.radians curveType:AGSGeodeticCurveTypeGeodesic].distance;