Function UtmZone.fromNumber
Make a UTM zone from its number (1 through 60).
Use this when the zone is known and an invalid number should raise
an exception. Use tryFromNumber to check uncertain input.
Parameters
| Name | Description |
|---|---|
| number | Zone number in the closed interval [1,60]. |
Returns
The constructed zone.
Throws
GeodesyValueException outside [1,60].
Example
Example constructing UTM zone 33.
import geodesy;
const zone = UtmZone .fromNumber(33);
assert(zone .number == 33);