A newer version of this page is available.
Switch to the current version.
GeoUtils.CalculateArea(IList<GeoPoint>) Method
Computes the area of a closed shape formed by the given points.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.2.dll
Declaration
public static double CalculateArea(
IList<GeoPoint> points
)
Public Shared Function CalculateArea(
points As IList(Of GeoPoint)
) As Double
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
Feedback