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

Rebase and tweaks to "Fix forcing zones around equator and add force_northern in from_latlon" #124

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

heathhenley
Copy link
Contributor

At attempt at the changes discussed in #46 (comment)

  • grabbed branch and rebased on latest master
  • put the mixed sign sanity check back, but don't run them with the new force_northern param
  • update tests

Is something like this what you had in mind @bartvanandel? Or should the checks be explicitly be turned on / off via additional keyword option?

Based on #46

sdhiscocks and others added 2 commits October 21, 2024 17:56
Logic in from_latlon has been changed to be similar to to_latlon,
including adding a force_northern option to mirror northern option in
to_latlon. This resolves the issue with northing coordinate incorrectly
being set when pasing in -ve or +ve latitude when forcing northern or
southern zone respectively.

Closes Turbo87#35 - alternative fix for issue.
utm/conversion.py Outdated Show resolved Hide resolved
@sdhiscocks
Copy link
Contributor

Thanks @heathhenley. Just catching up with recent comments. This seems reasonable compromise, raising error when not forcing conversion into a particular hemisphere/zone (see comment regards zone letter).

@heathhenley
Copy link
Contributor Author

Thanks @sdhiscocks - I just updated based that suggestion. I agree that it makes sense to ignore the checks when forcing the zone. However, it used to raise there (eg this test would raise) so I'm not sure if that's in line what @bartvanandel had in mind?

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

Successfully merging this pull request may close these issues.

2 participants