Skip to main content

GeoUtils.CalculateArea(List<GeoPoint>) Method

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

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v24.2.dll

NuGet Package: DevExpress.Wpf.Map

Declaration

public static double CalculateArea(
    List<GeoPoint> points
)

Parameters

Name Type Description
points List<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 use the CalculateArea method 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