Click or drag to resize

CoordinateFormatter Class

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 Hierarchy
SystemObject
  Esri.ArcGISRuntime.GeometryCoordinateFormatter

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public static class CoordinateFormatter

The CoordinateFormatter type exposes the following members.

Methods
  NameDescription
Public methodStatic memberFromGars
Parses a coordinate string in the Global Area Reference System (GARS) notation, and returns a MapPoint representing that location.
Public methodStatic memberFromGeoRef
Parses a coordinate string in World Geographic Reference System (GEOREF) notation, and returns a MapPoint representing that location.
Public methodStatic memberCode exampleFromLatitudeLongitude
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.
Public methodStatic memberFromMgrs
Parses a coordinate string in the Military Grid Reference System (MGRS) notation, and returns a MapPoint representing that location.
Public methodStatic memberCode exampleFromUsng
Parses a coordinate in United States National Grid (USNG) notation and returns a MapPoint representing that location.
Public methodStatic memberCode exampleFromUtm
Parses a coordinate in the Universal Transverse Mercator (UTM) notation and returns a MapPoint representing that location.
Public methodStatic memberToGars
Returns a formatted coordinate string in Global Area Reference System (GARS) notation representing the given MapPoint's location.
Public methodStatic memberToGeoRef
Returns a formatted coordinate string in World Geographic Reference System (GEOREF) notation representing the given MapPoint's location.
Public methodStatic memberCode exampleToLatitudeLongitude
Returns a formatted coordinate string in latitude-longitude notation representing the given MapPoint's location.
Public methodStatic memberToMgrs
Returns a formatted coordinate string in Military Grid Reference System (MGRS) notation representing the given MapPoint's location.
Public methodStatic memberCode exampleToUsng
Returns a formatted coordinate string in United States National Grid (USNG) notation representing the given MapPoint's location.
Public methodStatic memberCode exampleToUtm
Returns a formatted coordinate string in Universal Transverse Mercator (UTM) notation representing the given MapPoint's location.
Top
See Also