-
Notifications
You must be signed in to change notification settings - Fork 310
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
Error in difference between two polygons #12
Comments
What is JTS' result? I suspect it is a precision problem. |
@FObermaier same suspect. I wanna check jts results first. |
checked: jts'trunk returns same results |
We also checked JTS with the same result. After some investigation it turns out its due to our implementation. We did calculate an intersection and then in a second step tried to remove the intersection from the geometry. So strictly speeking the algorithm is correct and you just have to be carefull when using calculated geometries and instead of calculating an overlap and then removing that overlap, then just remove it by using the difference between the two original geometries |
copied from GoogleCode Issue 193
What steps will reproduce the problem?
What is the expected output? What do you see instead?
The two polygons share a vertex (504927.9 6228865.64) at the left tip of the triangle, and when creating the difference this point does not get removed, leaving a strange "tail" on the resulting polygon. Expected to get only the blue(ish) colored polygon as a result
See the image atached.
What version of the product are you using? On what operating system?
It seems to be the same problem with verison 13.1 and 13.2
Its tested on Windows 7 x64 and .NET framework 4.5.1
The text was updated successfully, but these errors were encountered: