Class CoordinateFormatter
Converts between MapPoints and formatted coordinate notation strings. Supported formats include: decimal degrees (DD); degrees, minutes, and seconds (DMS); U.S. National Grid (USNG); Military Grid Reference System (MGRS); and others.
Namespace: Esri.ArcGISRuntime.Geometry
Assembly: Esri.ArcGISRuntime.dll
Syntax
public static class CoordinateFormatter
Methods
Name | Description |
---|---|
FromGars(String, SpatialReference, GarsConversionMode) | Parses a coordinate string in the Global Area Reference System (GARS) notation, and returns a MapPoint representing that location. |
FromGeoRef(String, SpatialReference) | Parses a coordinate string in World Geographic Reference System (GEOREF) notation, and returns a MapPoint representing that location. |
FromLatitudeLongitude(String, SpatialReference) | Parses a coordinate string in latitude-longitude notation, and returns a MapPoint representing that location. The coordinate may use decimal degrees (DD); degrees and decimal minutes (DDM); or degrees, minutes, and seconds (DMS) format. |
FromMgrs(String, SpatialReference, MgrsConversionMode) | Parses a coordinate string in the Military Grid Reference System (MGRS) notation, and returns a MapPoint representing that location. |
FromUsng(String, SpatialReference) | Parses a coordinate in United States National Grid (USNG) notation and returns a MapPoint representing that location. |
FromUtm(String, SpatialReference, UtmConversionMode) | Parses a coordinate in the Universal Transverse Mercator (UTM) notation and returns a MapPoint representing that location. |
ToGars(MapPoint) | Returns a formatted coordinate string in Global Area Reference System (GARS) notation representing the given MapPoint's location. |
ToGeoRef(MapPoint, Int32) | Returns a formatted coordinate string in World Geographic Reference System (GEOREF) notation representing the given MapPoint's location. |
ToLatitudeLongitude(MapPoint, LatitudeLongitudeFormat, Int32) | Returns a formatted coordinate string in latitude-longitude notation representing the given MapPoint's location. |
ToMgrs(MapPoint, MgrsConversionMode, Int32, Boolean) | Returns a formatted coordinate string in Military Grid Reference System (MGRS) notation representing the given MapPoint's location. |
ToUsng(MapPoint, Int32, Boolean) | Returns a formatted coordinate string in United States National Grid (USNG) notation representing the given MapPoint's location. |
ToUtm(MapPoint, UtmConversionMode, Boolean) | Returns a formatted coordinate string in Universal Transverse Mercator (UTM) notation representing the given MapPoint's location. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |