Function LambertAzimuthalEqualArea.tryFromParameters
Set up an equal-area map with a chosen geographic centre.
static bool tryFromParameters(
const Ellipsoid!T ellipsoid,
const Latitude!T latitudeOfProjectionCentre,
const Longitude!T longitudeOfProjectionCentre,
const T falseEasting,
const T falseNorthing,
out LambertAzimuthalEqualArea result
) pure nothrow @nogc @safe;
Supply the ellipsoid, central latitude and longitude, and the
false easting/northing defined by the map grid. Offsets share the
ellipsoid's length unit. Returns false for unsupported parameters.
Example
Example preparing EPSG:3035-style parameters without throwing.
import geodesy;
const grs80 = Ellipsoid!double .fromInverseFlattening(
6_378_137.0,
298.257222101);
LambertAzimuthalEqualArea!double projection;
assert(LambertAzimuthalEqualArea!double .tryFromParameters(
grs80,
Latitude!double .fromDegrees(52.0),
Longitude!double .fromDegrees(10.0),
4_321_000.0,
3_210_000.0,
projection));