length
Calculates the length of the given geometry. This planar measurement uses 2D Cartesian mathematics to compute the length. It is based upon the SpatialReference of the input geometry. If the input geometry is not using an 'distance preserving' spatial reference, the result can be inaccurate. You have two options available to calculate a more accurate result:
Use a different spatial reference. Use the GeometryEngine.projectOrNull method to project the geometry to a projected coordinate system that is better suited for area calculations. See Spatial references and Supported map projections for more information.
Use the geodetic equivalent, GeometryEngine.lengthGeodetic.
Supports true curves.
Return
The length of the given geometry.
Since
200.1.0
Parameters
A geometry object.