Function UtmProjection.fromZone
Prepare an explicit UTM zone.
static UtmProjection fromZone(
const Ellipsoid!T ellipsoid,
const UtmZone zone,
const UtmHemisphere hemisphere
) @safe;
Parameters
| Name | Description |
|---|---|
| ellipsoid | Supported terrestrial oblate ellipsoid in metres with 6,000,000 <= a <= 7,000,000 and 0 < f <= 0.01. |
| zone | Valid explicit UTM zone. |
| hemisphere | North/south false-northing convention. |
Returns
The prepared UTM projection.
Throws
GeodesyValueException for unsupported ellipsoid, zone, or
hemisphere parameters.
Example
Example preparing UTM zone 33 north.
import geodesy;
const projection = UtmProjection!double .fromZone(
wgs84!double(), UtmZone .fromNumber(33), UtmHemisphere .north);
assert(projection .zone .number == 33);