CoordinateFormatter class abstract final

Converts between Points and formatted coordinate notation strings such as decimal degrees; degrees, minutes, and seconds; U.S. National Grid (USNG); and Military Grid Reference System (MGRS).

Constructors

CoordinateFormatter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromGars({required String coordinates, required SpatialReference? spatialReference, required GarsConversionMode garsConversionMode}) ArcGISPoint
Parses a coordinate in Global Area Reference System (GARS) notation, and returns a Point representing that location.
fromGeoRef({required String coordinates, required SpatialReference? spatialReference}) ArcGISPoint
Parses a coordinate in World Geographic Reference System (GEOREF) notation, and returns a Point representing that location.
fromLatitudeLongitude({required String coordinates, required SpatialReference? spatialReference}) ArcGISPoint
Parses a coordinate in latitude-longitude notation, and returns a Point representing that location. The coordinate may use decimal degrees, degrees and decimal minutes, or degrees, minutes, and seconds format.
fromMgrs({required String coordinates, required SpatialReference? spatialReference, required MgrsConversionMode mgrsConversionMode}) ArcGISPoint
Parses a coordinate in Military Grid Reference System (MGRS) notation, and returns a Point representing that location.
fromUsng({required String coordinates, required SpatialReference? spatialReference}) ArcGISPoint
Parses a coordinate in United States National Grid (USNG) notation, and returns a Point representing that location.
fromUtm({required String coordinates, required SpatialReference? spatialReference, required UtmConversionMode utmConversionMode}) ArcGISPoint
Parses a coordinate in Universal Transverse Mercator (UTM) notation, and returns a Point representing that location.
toGars({required ArcGISPoint point}) String
Returns a formatted coordinate in Global Area Reference System (GARS) notation representing the given point's location.
toGeoRef({required ArcGISPoint point, required int precision}) String
Returns a formatted coordinate in World Geographic Reference System (GEOREF) notation representing the given point's location.
toLatitudeLongitude({required ArcGISPoint point, required LatitudeLongitudeFormat format, required int decimalPlaces}) String
Returns a formatted coordinate in latitude-longitude notation representing the given point's location.
toMgrs({required ArcGISPoint point, required MgrsConversionMode mgrsConversionMode, required int precision, required bool addSpaces}) String
Returns a formatted coordinate in Military Grid Reference System (MGRS) notation representing the given point's location.
toUsng({required ArcGISPoint point, required int precision, required bool addSpaces}) String
Returns a formatted coordinate in United States National Grid (USNG) notation representing the given point's location.
toUtm({required ArcGISPoint point, required UtmConversionMode utmConversionMode, required bool addSpaces}) String
Returns a formatted coordinate in Universal Transverse Mercator (UTM) notation representing the given point's location.