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

Fix WKTWriter for small precisions and with trim enabled #1199

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented Nov 20, 2024

This fixes some excessive rounding for digits that meet these conditions:

  • Trim is enabled
  • Precision is between 2 and 3
  • Absolute number is less than 1.0 and greater than 0.001 (ish?)

Fixes #1198

@mwtoews mwtoews merged commit 3bb7596 into libgeos:main Nov 20, 2024
28 checks passed
@mwtoews mwtoews deleted the fix-1198 branch November 20, 2024 22:28
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.

New WKT rounding behaviour in 3.13
2 participants