Skip to content

Commit 130a5d8

Browse files
kashish2710barendgehrels
authored andcommitted
Add failing regression test for non-overlapping polygon intersection (issue #1439)
1 parent 32f2033 commit 130a5d8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

test/algorithms/overlay/overlay_cases.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,4 +1653,24 @@ static std::string mysql_23023665_13[2] =
16531653
"POLYGON((0 7,-5 6,11 -13,0 7))"
16541654
};
16551655

1656+
// Issue 1439: non-overlapping polygons reported as full intersection
1657+
static std::string case_1439[2] =
1658+
{
1659+
"POLYGON((-2.47089026 -86.03059246,"
1660+
"-1.161944873 146.3030596,"
1661+
"3.40221214 145.8628015,"
1662+
"3.024695769 141.949088,"
1663+
"2.420586453 111.9554564,"
1664+
"1.208013978 -86.04069936,"
1665+
"-2.47089026 -86.03059246))",
1666+
1667+
"POLYGON((-6.213278056 -88.01851748,"
1668+
"-6.207382255 -86.51852906,"
1669+
"-6.20539951 -86.01408604,"
1670+
"-2.470873099 -86.02434575,"
1671+
"-2.472221358 -86.53315586,"
1672+
"-2.476196085 -88.03315059,"
1673+
"-6.213278056 -88.01851748))"
1674+
};
1675+
16561676
#endif // BOOST_GEOMETRY_TEST_OVERLAY_CASES_HPP

0 commit comments

Comments
 (0)