lengthGeodetic static method

double lengthGeodetic({
  1. required Geometry geometry,
  2. LinearUnit? lengthUnit,
  3. required GeodeticCurveType curveType,
})

Calculates the geodetic length of the geometry.

Supports true curves, calculating the result by densifying curves.

Parameters:

  • geometry — A geometry object.
  • lengthUnit — The unit of measure for the returned value. If null, meters are assumed.
  • curveType — The type of curve to calculate.

Return Value: The geodetic length of the given geometry.