toUtm static method

String toUtm({
  1. required ArcGISPoint point,
  2. required UtmConversionMode utmConversionMode,
  3. required bool addSpaces,
})

Returns a formatted coordinate in Universal Transverse Mercator (UTM) notation representing the given point's location.

Example output for a point in the southern hemisphere:

utm_conversion_mode add_spaces Example output
[UtmConversionMode.latitudeBandIndicators] false 30U4898846199881
[UtmConversionMode.latitudeBandIndicators] true 30U 489884 6199881
[UtmConversionMode.northSouthIndicators] false 30N4898846199881
[UtmConversionMode.northSouthIndicators] true 30N 489884 6199881

The point must have a spatial reference. Returns null on error.

Parameters:

  • point — The coordinate to be represented in UTM notation.
  • utmConversionMode — The latitude notation scheme to use in the returned UTM notation string, either a latitudinal band, or a hemisphere designator.
  • addSpaces — If false, the generated string contains no spaces. If true, a space separates the UTM zone and latitude designator, and each numerical easting and northing value.

Return Value: A UTM notation string representing the position of the given point.