Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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