Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utm.toLatLon: unable to use "northern" without "zoneLetter" (undefined is not false) #3

Closed
perhallstroem opened this issue Nov 7, 2016 · 2 comments

Comments

@perhallstroem
Copy link

To reproduce:

– call utm.toLatLon(easting, northing, 55, undefined, false) and you get
– "Error: either zone_letter or northern needs to be set"

This is despite the fact that northern in fact is set, but to false. The error seems to be caused by an incorrect translation from Python's if not zone_letter and northern is None: my understanding is that we must check to see if northern is undefined.

@TimothyGu
Copy link
Owner

Thanks for reporting!

@perhallstroem
Copy link
Author

Wow, that was quick. My tests are passing without my "monkey patch" – great! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants