ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeometryEngine Class / GeodesicArea Method / GeodesicArea(Geometry,AreaUnit) Method
The input geometry. Cannot be null and its spatial reference cannot be null.
The unit of the output area. If null, then the area is square meters.

In This Topic
    GeodesicArea(Geometry,AreaUnit) Method
    In This Topic
    Gets the geodesic area of a geometry.
    Syntax
    public double GeodesicArea( 
       Geometry geometry,
       AreaUnit areaUnit
    )
    Public Overloads Function GeodesicArea( _
       ByVal geometry As Geometry, _
       ByVal areaUnit As AreaUnit _
    ) As Double

    Parameters

    geometry
    The input geometry. Cannot be null and its spatial reference cannot be null.
    areaUnit
    The unit of the output area. If null, then the area is square meters.

    Return Value

    The calculated geodesic area in areaUnit. If areaUnit is null, the geodesic area is in square meters.

    If the geometry is empty, then zero is returned.

    Exceptions
    ExceptionDescription
    Geometry is null or geometry's spatial reference is null.
    The method is not implemented for GeometryBag or Multipatch.
    Spatial reference of geometryis an image coordinate system.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also