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

Truncate, don't round. #15

Merged
merged 1 commit into from Jul 16, 2016
Merged

Truncate, don't round. #15

merged 1 commit into from Jul 16, 2016

Conversation

dwyerk
Copy link
Contributor

@dwyerk dwyerk commented Jul 16, 2016

In version 3.0 of GEOTRANS, NGA made a change to stop rounding
the results of an imprecise MGRS conversion. This patch makes the
corresponding change in the C code to truncate instead of round.

See: https://en.wikipedia.org/wiki/Military_grid_reference_system#Truncate.2C_don.27t_round

In version 3.0 of GEOTRANS, NGA made a change to stop rounding
the results of an imprecise MGRS conversion. This patch makes the
corresponding change in the C code to truncate instead of round.

See: https://en.wikipedia.org/wiki/Military_grid_reference_system#Truncate.2C_don.27t_round
@hobu hobu merged commit 0bbfdeb into hobuinc:master Jul 16, 2016
@hobu
Copy link
Collaborator

hobu commented Jul 16, 2016

Thanks. I have pushed a new 1.3.4 version to PyPI that includes this patch.

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.

None yet

2 participants