From d60b0e7cc44547be3a8eeea62c82ddf690d0354f Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Tue, 8 Apr 2014 15:49:15 +0200 Subject: [PATCH] [relate] add tests for Polygons with rings for which IPs were not generated --- test/algorithms/relate.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/algorithms/relate.cpp b/test/algorithms/relate.cpp index 64e187e02..2414191d7 100644 --- a/test/algorithms/relate.cpp +++ b/test/algorithms/relate.cpp @@ -843,6 +843,15 @@ void polygon_polygon() "POLYGON((1 1,1 9,9 9,9 1,1 1),(3 3,7 3,7 7,3 7,3 3))", "2121F1212"); + // no-turns ring - for exteriors + test_geometry("POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,8 2,8 8,2 8,2 2))", + "POLYGON((1 1,1 9,9 9,9 1,1 1),(2 2,8 2,8 8,2 8,2 2))", + "212F11FF2"); + // no-turns ring - for interiors + test_geometry("POLYGON((0 0,0 10,10 10,10 0,0 0),(3 3,7 3,7 7,3 7,3 3))", + "POLYGON((0 0,0 10,10 10,10 0,0 0),(2 2,8 2,8 8,2 8,2 2))", + "212F11FF2"); + { test_geometry("POLYGON((0 0,0 10,10 10,10 0,0 0))", "POLYGON((5 5,5 10,6 10,6 5,5 5))",