-
Notifications
You must be signed in to change notification settings - Fork 448
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
Orientation.Index problem with COLLINEARity #750
Comments
It's worth noting that this could be due to either:
Either way the effect is the same. Do you need to define what the epsilon value applies to? Is it the value of the determinant, or the ordinate values? That can affect the size of the provided value. The method doc should discuss this, I think. What is the algorithm you are suggesting be used to evaluate the fuzzy index value? How are you intending to use this method in computation? I do think something like this will be needed. I've been thinking about developing spatial predicates which will allow a tolerance value. Although I was thinking more along the lines of adding some snapping, rather than a tolerance on the basic predicates. |
The problem first arises in jts/modules/core/src/main/java/org/locationtech/jts/algorithm/CGAlgorithmsDD.java Lines 142 to 144 in c2702c0
This continues into the DD computation in |
A related issue: libgeos/geos#1207 |
The following unit test fails:
I'm aware that this is due to floating point arithmetic, so would it be acceptable to add the following overload of
Orientation.index
:The text was updated successfully, but these errors were encountered: