Function forwardUtm
Automatic UTM forward projection with throwing failure semantics.
UtmCoordinate!T forwardUtm(T)(
const GeographicCoordinate!T source,
const Ellipsoid!T ellipsoid
) @safe
if (isGeodesyScalar!T);
Parameters
| Name | Description |
|---|---|
| source | Geographic source coordinate in the standard automatic UTM latitude band (-80 degrees inclusive to +84 degrees exclusive). |
| ellipsoid | Supported terrestrial oblate ellipsoid in metres. |
Returns
Tagged UTM zone, hemisphere, easting, and northing.
Throws
GeodesyValueException when automatic policy selection or projection
fails.
Example
Example projecting with automatic UTM zone selection.
import geodesy;
const vienna = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
const utm = forwardUtm(vienna, wgs84!double());
assert(utm .zone .number == 33);