Function tryForwardUps
Project a geographic coordinate using standard automatic UPS policy.
bool tryForwardUps(T)(
const GeographicCoordinate!T source,
out UpsCoordinate!T result
) pure nothrow @nogc @safe
if (isGeodesyScalar!T);
Automatic UPS is selected only outside standard automatic UTM:
latitude < -80 degrees or latitude >= +84 degrees.
Example
Example projecting automatically to UPS.
import geodesy;
const point = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(85.0),
Longitude!double .fromDegrees(20.0));
UpsCoordinate!double result;
assert(tryForwardUps(point, result));
assert(result .hemisphere == UpsHemisphere .north);