Function LambertConformalConic.tryReverseFactors

Compute factors at a projected coordinate without throwing.

bool tryReverseFactors(
  const ProjectedCoordinate!T source,
  out ConformalProjectionFactors!T result
) const pure nothrow @nogc @safe;

Example

Example obtaining reverse LCC factors 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 point = GeographicCoordinate!double.fromComponents(
    Latitude!double.fromDegrees(35.0),
    Longitude!double.fromDegrees(-75.0));
ConformalProjectionFactors!double factors;
assert(p.tryReverseFactors(p.forward(point), factors));