Skip to content

Commit 793eb20

Browse files
committed
Create test which fails for issue 1217
1 parent 7939069 commit 793eb20

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/unit/operation/buffer/BufferOpTest.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,4 +623,18 @@ void object::test<28>
623623
"MULTIPOLYGON (((24 95.239, 24 96, 24 99, 24.816 99, 24 95.239)), ((3 90, 3 93, 3 96, 3 99, 21 99, 21 96, 21 93, 21 90, 3 90)))");
624624
}
625625

626+
// testEndCap
627+
// test end cap for a line where left and right side are simplified differently, so there is an angle at the end
628+
// See https://github.com/libgeos/geos/issues/1217
629+
template<>
630+
template<>
631+
void object::test<29>
632+
()
633+
{
634+
std::string wkt("LINESTRING (0.7 4.7, 146.3 137.1, 146.3 137, 146.6 136.7)");
635+
std::unique_ptr<Geometry> result13 = buffer(wkt, 11);
636+
checkValidPolygon(*result13);
637+
checkNumHoles(*result13, 0);
638+
}
639+
626640
} // namespace tut

0 commit comments

Comments
 (0)