[test][relate][crosses] Add test for linear spike crossing another linestring.

This commit is contained in:
Adam Wulkiewicz 2015-01-21 19:13:13 +01:00
parent 6386400075
commit 402e939a5c
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,9 @@ void test_ll()
test_geometry<mls, ls>("MULTILINESTRING((0 1,4 1),(0 2,4 2))", "LINESTRING(0 0,2 2,4 4)", true);
test_geometry<mls, mls>("MULTILINESTRING((0 0,2 2,4 4),(3 0,3 4))", "MULTILINESTRING((0 1,4 1),(0 2,4 2))", true);
// spike - boundary and interior on the same point
test_geometry<ls, ls>("LINESTRING(3 7, 8 8, 2 6)", "LINESTRING(5 7, 10 7, 0 7)", true);
}
template <typename P>

View File

@ -221,6 +221,9 @@ void test_linestring_linestring()
|| bgdr::mask9("F***T****")));
BOOST_CHECK(bgdr::relate(ls2, ls4, bgdr::mask9("T*F**F***"))); // within
}
// spike - boundary and interior on the same point
test_geometry<ls, ls>("LINESTRING(3 7, 8 8, 2 6)", "LINESTRING(5 7, 10 7, 0 7)", "0010F0102");
}
template <typename P>