fixed error in collect_vectors - vectors previously gathered for other rings were removed based on the direction of the last vector of currently analysed ring

This commit is contained in:
Adam Wulkiewicz
2014-01-22 22:00:29 +01:00
parent cfba8409c5
commit 7e3d0571f9
2 changed files with 13 additions and 3 deletions

View File

@@ -98,6 +98,9 @@ void test_all()
// Is this equal? To be decided.
//test_geometry<linestring, linestring>("ls1", "LINESTRING(1 1,2 2)", "LINESTRING(2 2,1 1)", true);
test_geometry<polygon, polygon>("poly_holes_shifted_points",
"POLYGON((0 0,0 3,3 3,3 0,0 0),(1 1,2 1,2 2,1 2,1 1))",
"POLYGON((0 0,0 3,3 3,3 0,0 0),(2 2,1 2,1 1,2 1,2 2))", true);
}