Function that returns the UTM zone?

Is there a Julia function that returns the UTM zone when given a latitude and longitude similar to Matlab’s utmzone?

There’s a utm_zone function in the Geodesy.jl package. I think it does exactly what you’re looking for, but it does one better than Matlab’s utmzone by including the special rules for Svalbard.

2 Likes