windowsforms-devexpress-dot-xtramap-e2570332.md
Cartography measurement API for maps with a geographical coordinate system.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public static class GeoUtils
Public Module GeoUtils
The GeoUtils class provides methods that allow you to calculate geometric values (for example, a shape perimeter or area) based on geographical coordinates.
The following list contains the main GeoUtils methods:
CalculateArea(MapShape shape) computes a map shape’s total area, in square meters.
CalculateArea(IList<GeoPoint> points) calculates an area of the region given by geographical points, in square meters.
CalculateBearing(GeoPoint p1, GeoPoint p2) computes an angle between the Geodetic North direction and a line given by two points, clockwise in degrees.
CalculateCenter(GeoPoint p1, GeoPoint p2) finds a center point between two geographical points.
CalculateDistance(GeoPoint p1, GeoPoint p2) determines the distance between two geographical points, in meters.
CalculateDistance(GeoPoint p1, GeoPoint p2, Boolean ignoreEllipsoidalEffects) determines the distance between two geographical points in meters. This CalculateDistance method overload allows you to specify whether to use the ellipsoidal-surface formula or spherical-surface formula to calculate the distance.
CalculateDestinationPoint(GeoPoint startPoint, Double distance, Double bearing) calculates a geographical point based on the specified start point, distance, and bearing. The distance is measured along a geodesic line.
CalculateLength(IList<GeoPoint> points) calculates the polyline length, in meters.
CalculateStrokeLength(MapShape shape) returns the map shape’s stroke length, in meters.
Object GeoUtils
See Also