Skip to main content
A newer version of this page is available. .

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.v19.1.dll

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