Function UtmZone.tryFromNumber
Construct a UTM zone number without throwing.
Parameters
| Name | Description |
|---|---|
| number | Zone number in the closed interval [1,60]. |
| result | Receives the zone on success. |
Returns
true for a valid zone number; otherwise false. On failure
result is initialized to on entry and has no guaranteed value on failure.
Example
Example checking a UTM zone number without throwing.
import geodesy;
UtmZone zone;
assert(UtmZone .tryFromNumber(33, zone));
assert(zone .number == 33);