Function LambertAzimuthalEqualArea.tryReverse
Recover latitude and longitude from this equal-area grid.
bool tryReverse(
const ProjectedCoordinate!T source,
out GeographicCoordinate!T result
) const pure nothrow @nogc @safe;
The coordinate must lie in the supported represented disk. This
checked form returns false when it cannot be reversed.
Example
Example reversing a projected coordinate without throwing.
import geodesy;
const projection =
LambertAzimuthalEqualArea!double .fromParameters(
wgs84!double(),
Latitude!double .fromDegrees(52.0),
Longitude!double .fromDegrees(10.0),
0.0, 0.0);
const source = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
GeographicCoordinate!double recovered;
assert(projection .tryReverse(
projection .forward(source),
recovered));