toUtmOrNull

fun toUtmOrNull(point: Point, utmConversionMode: UtmConversionMode, addSpaces: Boolean): String?

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.

Return

A UTM notation string representing the position of the given point.

Since

200.1.0

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.