Function PolarStereographic.tryFromParameters

Set up a polar grid using the scale factor specified at the pole.

static bool tryFromParameters(
  const Ellipsoid!T ellipsoid,
  const Latitude!T latitudeOfNaturalOrigin,
  const Longitude!T longitudeOfNaturalOrigin,
  const T scaleFactorAtNaturalOrigin,
  const T falseEasting,
  const T falseNorthing,
  out PolarStereographic result
) pure nothrow @nogc @safe;

Supply the ellipsoid, selected north/south pole, central meridian, positive scale factor and false easting/northing. Offsets use the ellipsoid's linear unit. Use this checked form to reject invalid parameters without throwing.

Example

Example checking Polar Stereographic construction without throwing.

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