Function UpsProjection.forward

Convert a position in the chosen polar hemisphere to UPS metres.

ProjectedCoordinate!T forward(
  const GeographicCoordinate!T source
) const @safe;

Use this when you have already selected a UPS hemisphere and want its standard grid coordinates. The prepared projection also admits the documented overlap with UTM; use tryForward for checked input.

Example

Example projecting in prepared south UPS.

import geodesy;
const projection = UpsProjection!double.fromHemisphere(
    UpsHemisphere.south);
const point = GeographicCoordinate!double.fromComponents(
    Latitude!double.fromDegrees(-85.0),
    Longitude!double.fromDegrees(20.0));
assert(projection.forward(point).northing > 700_000.0);