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.
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;
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.