-
Notifications
You must be signed in to change notification settings - Fork 438
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
Control Geometry overlay algorithm via system property #615
Conversation
I have a different proposal: Why don't we tie geometry operations/predicates to the |
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
d2c1e52
to
0187698
Compare
A good idea. We have had design discussions about JTS 2, and one of the ideas is to provide a geometry method registry concept, to support this kind of flexibility. The current concept is to make it static, so that it's easy to access from Geometry implementations (in JTS 2 Perhaps this would be done as a That said, the goal of this small enhancement is to make it easy for current users of JTS to switch to using OverlayNG with no code changes. Thus I think the PR is reasonable as it stands. The implementation can be enhanced as and when there is clear demand for it. |
I realized that this code should use OverlayNG with Snap-Rounding for geometries with a fixed precision model. Will add an enhancement for that. And since this is starting to get complex, I will expose a method to set the overlayNG flag programmatically, to allow unit testing. |
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Control Geometry overlay algorithm via a system property
jts-overlay
. This makes it possible to use OverlayNG in existing deployments with no code changes.