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

Improve GeometryPrecisionReducer to handle GeometryCollections, produce valid result #648

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Dec 1, 2020

Improve GeometryPrecisionReducer to handle GeometryCollections.
This also fixes the issue where some valid inputs could produce an invalid result (seee #8, #324).

However, it does make GeometryPrecisionReducer less tolerant of invalid input. There may be cases where invalid input "worked" previously and now produces an IllegalArgumentException. (see #653).

Signed-off-by: Martin Davis mtnclimb@gmail.com

Signed-off-by: Martin Davis <mtnclimb@gmail.com>
@dr-jts dr-jts merged commit 7680360 into locationtech:master Dec 1, 2020
@dr-jts dr-jts deleted the fix-geomprecisionreducer branch December 1, 2020 22:05
@dr-jts dr-jts changed the title Improve GeometryPrecisionReducer to handle GeometryCollections Improve GeometryPrecisionReducer to handle GeometryCollections, produce valid result Dec 14, 2020
@dr-jts
Copy link
Contributor Author

dr-jts commented Dec 14, 2020

Fixes #88

@dr-jts
Copy link
Contributor Author

dr-jts commented Dec 14, 2020

Fixes #324

@mprins
Copy link
Contributor

mprins commented Jan 5, 2021

Why is this listed as an API change in te release notes?
because it doesn't change the API of GeometryPrecisionReducer or GeometryTransformer...

@dr-jts
Copy link
Contributor Author

dr-jts commented Jan 5, 2021

Why is this listed as an API change in te release notes?

Correct, the actual API hasn't changed. But the behaviour of GeometryPrecisionReducer has changed slightly. It is less tolerant of invalid input. See discussion in #653

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

Successfully merging this pull request may close these issues.

2 participants