Function PseudoMercator.reverse
Reverse a projected coordinate from the bounded represented sheet.
Parameters
| Name | Description |
|---|---|
| source | Projected easting and northing in the ellipsoid linear unit. |
Returns
The corresponding geographic coordinate.
Throws
GeodesyValueException when the prepared operation is invalid,
the coordinate is outside the represented sheet, or no finite
representable inverse can be produced.
Example
Example reversing a Pseudo-Mercator coordinate.
import geodesy;
const projection = PseudoMercator!double .fromParameters(
wgs84!double(), Longitude!double .fromDegrees(0.0), 0.0, 0.0);
const source = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
const roundTrip = projection .reverse(projection .forward(source));
assert(roundTrip .longitude .degrees > 16.0);
}