-
Notifications
You must be signed in to change notification settings - Fork 227
Add overlay regression case for issue 1439 #1444
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
base: develop
Are you sure you want to change the base?
Conversation
|
This PR adds the overlay regression case for issue #1439. |
| "POLYGON((0 7,-5 6,11 -13,0 7))" | ||
| }; | ||
|
|
||
| // Issue 1439: non-overlapping polygons reported as full intersection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it is not called yet? Or do you still have to push something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You’re right — the case was not called yet.
I’ve now added an overlay intersection test in overlay.cpp for case_1439
using TEST_INTERSECTION, wrapped in
BOOST_GEOMETRY_TEST_ENABLE_FAILING,
and pushed the update to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Thanks for the review 👍
Just checking if there’s anything else I should update before this can be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine now. I added @vissarion and @tinko92 for short optional additional reviews.
I will look tomorrow at the case itself, and get back to you.
Thanks again for your quick efforts.
barendgehrels
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
vissarion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am OK, I left only some minor comments. Thanks @kashish2710 !
Feel free to merge your commits into one. In any case we can still squash merge the PR.
test/algorithms/overlay/overlay.cpp
Outdated
| #ifdef BOOST_GEOMETRY_TEST_ENABLE_FAILING | ||
| // Issue 1439 | ||
| // Regression test: intersection of non-overlapping polygons should be empty. | ||
| TEST_INTERSECTION(case_1439, 0, 0, 0.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe issue_1439 is more descriptive
test/algorithms/overlay/overlay.cpp
Outdated
|
|
||
| #ifdef BOOST_GEOMETRY_TEST_ENABLE_FAILING | ||
| // Issue 1439 | ||
| // Regression test: intersection of non-overlapping polygons should be empty. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix indentation
|
Thanks @vissarion for the review and suggestions! |
tinko92
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
This PR adds a regression test case for Boost.Geometry issue #1439.
– Introduces case_1439 in overlay_cases.hpp
– The case represents two non-overlapping polygons
– This case is intended to be used by set operation tests
No algorithm behavior is changed; this only adds test data.