From c8099415d4f5e0c33b76a2ba9bb5c7777b3a1f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Fri, 21 Nov 2025 11:50:12 +0100 Subject: [PATCH] fix(Polygon_repair): Ensure WKT POLYGON are closed --- Polygon_repair/examples/Polygon_repair/data/flat.wkt | 8 ++++---- Polygon_repair/examples/Polygon_repair/data/winding.wkt | 2 +- .../Polygon_repair/data/in/overlapping-edge-inside.wkt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Polygon_repair/examples/Polygon_repair/data/flat.wkt b/Polygon_repair/examples/Polygon_repair/data/flat.wkt index 681cd65d046..e8b7891b2a9 100644 --- a/Polygon_repair/examples/Polygon_repair/data/flat.wkt +++ b/Polygon_repair/examples/Polygon_repair/data/flat.wkt @@ -1,4 +1,4 @@ -POLYGON((0 0, 40 0, 40 40, 0 40)) -POLYGON((10 10 , 30 10, 30 30, 0 30)) -POLYGON((1 1, 2 1, 2 2, 1 2)) -POLYGON((11 11, 12 11, 12 12, 11 12)) +POLYGON((0 0, 40 0, 40 40, 0 40, 0 0)) +POLYGON((10 10 , 30 10, 30 30, 0 30, 10 10)) +POLYGON((1 1, 2 1, 2 2, 1 2, 1 1)) +POLYGON((11 11, 12 11, 12 12, 11 12, 11 11)) diff --git a/Polygon_repair/examples/Polygon_repair/data/winding.wkt b/Polygon_repair/examples/Polygon_repair/data/winding.wkt index 6fd39f4923c..c1546f6202d 100644 --- a/Polygon_repair/examples/Polygon_repair/data/winding.wkt +++ b/Polygon_repair/examples/Polygon_repair/data/winding.wkt @@ -1 +1 @@ -POLYGON((0 0, 10 0, 10 6, 6 6, 6 4 , 10 4, 10 10, 0 10)) \ No newline at end of file +POLYGON((0 0, 10 0, 10 6, 6 6, 6 4 , 10 4, 10 10, 0 10, 0 0)) \ No newline at end of file diff --git a/Polygon_repair/test/Polygon_repair/data/in/overlapping-edge-inside.wkt b/Polygon_repair/test/Polygon_repair/data/in/overlapping-edge-inside.wkt index 646ca0d5b5a..d716dfb9f1f 100644 --- a/Polygon_repair/test/Polygon_repair/data/in/overlapping-edge-inside.wkt +++ b/Polygon_repair/test/Polygon_repair/data/in/overlapping-edge-inside.wkt @@ -1 +1 @@ -MULTIPOLYGON(((0 0,1 0,1 1,0 1,0 0)),((1 0.25,2 0.25,2 0.75,1 0.75,1 0))) \ No newline at end of file +MULTIPOLYGON(((0 0,1 0,1 1,0 1,0 0)),((1 0.25,2 0.25,2 0.75,1 0.75,1 0.25))) \ No newline at end of file