Show / Hide Table of Contents

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.

Inheritance
System.Object
CoordinateFormatter
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.