Function LambertConformalConic.tryReverse
Convert this conic grid's easting and northing to latitude and longitude.
bool tryReverse(
const ProjectedCoordinate!T source,
out GeographicCoordinate!T result
) const pure nothrow @nogc @safe;
Returns false when the input cannot be reversed in the supported
domain; use reverse when an exception is preferred.
Example
Example reversing a projected coordinate without throwing.
import geodesy;
const p = LambertConformalConic!double .fromTwoStandardParallels(
wgs84!double(),
Latitude!double .fromDegrees(40.0),
Longitude!double .fromDegrees(-96.0),
Latitude!double .fromDegrees(33.0),
Latitude!double .fromDegrees(45.0),
0.0, 0.0);
const source = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(35.0),
Longitude!double .fromDegrees(-75.0));
const projected = p .forward(source);
GeographicCoordinate!double restored;
assert(p .tryReverse(projected, restored));