Function tryStandardUpsHemisphere
Select the standard automatic UPS hemisphere for a geographic coordinate.
bool tryStandardUpsHemisphere(T)(
const GeographicCoordinate!T source,
out UpsHemisphere hemisphere
) pure nothrow @nogc @safe
if (isGeodesyScalar!T);
Standard UPS is the exact complement of geodesy-d automatic UTM:
south UPS: latitude < -80 degrees north UPS: latitude >= +84 degrees
Therefore -80 degrees remains UTM while +84 degrees is UPS.
Example
Example selecting standard UPS at 85 degrees north.
import geodesy;
const point = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(85.0),
Longitude!double .fromDegrees(20.0));
UpsHemisphere hemisphere;
assert(tryStandardUpsHemisphere(point, hemisphere));
assert(hemisphere == UpsHemisphere .north);