Function UtmProjection.reverse
Reverse a coordinate in this explicit UTM zone.
Parameters
| Name | Description |
|---|---|
| source | Projected easting and northing in metres. |
Returns
The corresponding geographic coordinate without automatic zone or hemisphere reassignment.
Throws
GeodesyValueException when the prepared projection is invalid or
the coordinate lies outside the delegated bounded TM domain.
Example
Example reversing a prepared UTM coordinate.
import geodesy;
const projection = UtmProjection!double .fromZone(
wgs84!double(), UtmZone .fromNumber(33), UtmHemisphere .north);
const vienna = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
const result = projection .reverse(projection .forward(vienna));
assert(result .longitude .degrees > 16.0);