Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/algorithms/overlay/overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ void test_all()

// TEST_DIFFERENCE_B(issue_893_multi, 97213916.0, 1, 1); // needs is_traverse


#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);
#endif


TEST_UNION(case_134_multi, 66.0, 1, 2);
TEST_UNION(case_76_multi, 8.0, 5, 0);
Expand Down
20 changes: 20 additions & 0 deletions test/algorithms/overlay/overlay_cases.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,4 +1653,24 @@ static std::string mysql_23023665_13[2] =
"POLYGON((0 7,-5 6,11 -13,0 7))"
};

// Issue 1439: non-overlapping polygons reported as full intersection
static std::string case_1439[2] =
{
"POLYGON((-2.47089026 -86.03059246,"
"-1.161944873 146.3030596,"
"3.40221214 145.8628015,"
"3.024695769 141.949088,"
"2.420586453 111.9554564,"
"1.208013978 -86.04069936,"
"-2.47089026 -86.03059246))",

"POLYGON((-6.213278056 -88.01851748,"
"-6.207382255 -86.51852906,"
"-6.20539951 -86.01408604,"
"-2.470873099 -86.02434575,"
"-2.472221358 -86.53315586,"
"-2.476196085 -88.03315059,"
"-6.213278056 -88.01851748))"
};

#endif // BOOST_GEOMETRY_TEST_OVERLAY_CASES_HPP