Function UpsProjection.tryFromHemisphere
Prepare the standard UPS grid for one hemisphere without throwing.
static bool tryFromHemisphere(
const UpsHemisphere hemisphere,
out UpsProjection result
) pure nothrow @nogc @safe;
Select north or south explicitly; the WGS 84 ellipsoid, scale and false offsets are fixed by UPS rather than supplied by the caller.
Example
Example preparing UPS without throwing.
import geodesy;
UpsProjection!double projection;
assert(UpsProjection!double .tryFromHemisphere(
UpsHemisphere .south, projection));
assert(projection .hemisphere == UpsHemisphere .south);