fun area(geometry: Geometry): Double

Calculates the area of the given geometry. Planar measurements of distance and area can be extremely inaccurate if using an unsuitable spatial reference. Ensure that you understand the potential for error with the geometry's spatial reference. If you need to calculate more accurate results consider using a different spatial reference, or using the geodetic equivalent, GeometryEngine.areaGeodetic(Geometry, AreaUnit, GeodeticCurveType). See [] for more information about spatial references.

Supports true curves.


The area of the given geometry in the same units as the geometry's spatial reference system.