areaGeodetic

fun areaGeodetic(geometry: Geometry, unit: AreaUnit?, curveType: GeodeticCurveType): Double

Calculates the geodetic area of the given geometry using a geodetic curve. Calculating area using a geodetic measurement[https://developers.arcgis.com/documentation/glossary/geodetic-measurement/] accounts for the curvature of the earth's surface. Using geodetic algorithms to calculate areas and distances provides a highly accurate way to obtain measurements of geographic features, typically superior to that returned by the GeometryEngine.area(Geometry) method, which provides a planar measurement[https://developers.arcgis.com/documentation/glossary/planar-measurement/] that can introduce distortion depending on the SpatialReference the geometry is in.

Geometry must be topologically correct to accurately calculate area. Polygons that are self-intersecting or that have inconsistent ring orientations may produce inaccurate area values. In some cases, area values for polygons with incorrect topology may be negative. Geometries returned by ArcGIS Server services are always topologically correct. To ensure that polygons constructed or modified programmatically are topologically consistent, however, it's best to simplify the input geometry using GeometryEngine.simplifyOrNull(Geometry) before you call this method.

Supports true curves, calculating the result by densifying curves.

Return

The calculated geodetic area in the requested unit.

Since

200.1.0