Function PolarStereographic.fromParameters

Set up a pole-centred stereographic grid or throw on invalid parameters.

static PolarStereographic fromParameters(
  const Ellipsoid!T ellipsoid,
  const Latitude!T latitudeOfNaturalOrigin,
  const Longitude!T longitudeOfNaturalOrigin,
  const T scaleFactorAtNaturalOrigin,
  const T falseEasting,
  const T falseNorthing
) @safe;

Use tryFromParameters for a non-throwing configuration check.

Example

Example constructing a north-polar EPSG 9810 projection.

import geodesy;
const projection = PolarStereographic!double.fromParameters(
    wgs84!double(), Latitude!double.fromDegrees(90.0),
    Longitude!double.fromDegrees(0.0), 0.994,
    2_000_000.0, 2_000_000.0);
assert(projection.isValid);