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, int) | Returns a formatted coordinate string in World Geographic Reference System (GEOREF) notation representing the given MapPoint's location. |
| ToLatitudeLongitude(MapPoint, LatitudeLongitudeFormat, int) | Returns a formatted coordinate string in latitude-longitude notation representing the given MapPoint's location. |
| ToMgrs(MapPoint, MgrsConversionMode, int, bool) | Returns a formatted coordinate string in Military Grid Reference System (MGRS) notation representing the given MapPoint's location. |
| ToUsng(MapPoint, int, bool) | Returns a formatted coordinate string in United States National Grid (USNG) notation representing the given MapPoint's location. |
| ToUtm(MapPoint, UtmConversionMode, bool) | 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 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.1 - 200.8 |
| Xamarin.Android | 100.1 - 100.15 |
| Xamarin.iOS | 100.1 - 100.15 |
| UWP | 100.1 - 200.8 |