lengthGeodetic static method
- required Geometry geometry,
- LinearUnit? lengthUnit,
- 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.
Implementation
static double lengthGeodetic({
required Geometry geometry,
LinearUnit? lengthUnit,
required GeodeticCurveType curveType,
}) {
_initializeArcGISEnvironmentIfNeeded();
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_lengthGeodetic(
geometry._handle,
lengthUnit?._handle ?? ffi.nullptr,
curveType.coreValue,
errorHandler,
);
});
}