Function PolarStereographic.tryFromStandardParallel
Construct EPSG 9829 Polar Stereographic variant B without throwing.
static bool tryFromStandardParallel(
const Ellipsoid!T ellipsoid,
const Latitude!T latitudeOfStandardParallel,
const Longitude!T longitudeOfOrigin,
const T falseEasting,
const T falseNorthing,
out PolarStereographic result
) pure nothrow @nogc @safe;
The non-zero standard parallel selects the polar aspect. Its scale is converted to the equivalent EPSG 9810 scale factor at the natural origin; forward/reverse mathematics therefore remain one shared kernel.
Example
Example preparing EPSG 9829 from a southern standard parallel.
import geodesy;
PolarStereographic!double projection;
assert(PolarStereographic!double .tryFromStandardParallel(
wgs84!double(),
Latitude!double .fromDegrees(-71.0),
Longitude!double .fromDegrees(70.0),
6_000_000.0,
6_000_000.0,
projection));
assert(projection .latitudeOfNaturalOrigin .degrees == -90.0);