Turbo87 / utm

Bidirectional UTM-WGS84 converter for python
http://pypi.python.org/pypi/utm
MIT License
493 stars 101 forks source link

latitude out of range (must be between 80 deg S and 84 deg N) #52

Closed v2xhub closed 4 years ago

v2xhub commented 4 years ago

-82.388, 28.152 is a coordinate in Florida, but when type this code:

utm.from_latlon(-82.388, 28.152)

I get this error:

utm.error.OutOfRangeError: latitude out of range (must be between 80 deg S and 84 deg N)

v2xhub commented 4 years ago

Correct argument order is first lat and then lon:

utm.from_latlon(28.152,-82.388):

(363712.86509252305, 3114819.3369678785, 17, 'R')