-
Notifications
You must be signed in to change notification settings - Fork 262
GeometryException: internal error from within GeometryEngine.Difference(...) #316
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
Comments
I created what I think is a Java equivalent of this, but it does not throw any error. Program pasted below and can be run online here: https://www.jdoodle.com/ia/Xwj The program output is just I'm not sure what that means... either I have not reproduced this faithfully, or the issue does not happen in the Java 2.2.4 version of this library I guess. I tried it as well with the 2.0.0 library version, since that's what the C# code may have derived from (same timeframe). Made no difference.
|
@DaveInCaz Thank you for making a Java repro case. It seems that the expected output for this is indeed EMPTY. Visually inspecting this, the second polyline is larger than the first one and completely covers it. So the difference g1 - g2 should be zero. |
@stolstov agreed, EMPTY is a sensible result. Curious, what tool did you use to generate those images? |
@DaveInCaz It's just some internal program.
|
I've been using the project https://github.com/EchoParkLabs/geometry-api-cs which seems to be derived from here. I ran into the error GeometryException: internal error in a specific case.
The error occurs from running the following:
com.epl.geometry.GeometryEngine.Difference(p1, p2, null)
where
p1
andp2
are specified below. The exception is thrown here withinTopologicalOperations.RestorePolylineParts_()
:with the full stack trace below.
Using
OperatorDifference.Local()...
does the same thing.I'd be happy to provide any other information that might be helpful. I've tried step-tracing the code but really don't have enough context to understand where it's going wrong.
I'm looking for a workaround, if possible, and also just wanted to report the potential problem in this repository. (Despite this code coming from the other repo as noted above, it could be that the same issue exists here).
Thank you!
p1
is:and
p2
is:Stack trace:
The text was updated successfully, but these errors were encountered: