Skip to main content

GeoUtils.CalculateArea(IList<GeoPoint>) Method

Computes the area of a closed shape formed by the given points.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v23.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

public static double CalculateArea(
    IList<GeoPoint> points
)

Parameters

Name Type Description
points IList<GeoPoint>

The points that define the map shape vertices.

Returns

Type Description
Double

The map shape area in squire meters.

Remarks

The following example shows how to compute a map shape area:

double areaByPoints = GeoUtils.CalculateArea(new List<GeoPoint> {
    new GeoPoint(41, -109),
    new GeoPoint(41, -102),
    new GeoPoint(37, -102),
    new GeoPoint(37, -109)
});
See Also