]> granicus.if.org Git - postgis/commitdiff
Add test for invalid AddFace call (polygon not fully defined by known edges)
authorSandro Santilli <strk@keybit.net>
Mon, 28 Feb 2011 10:53:40 +0000 (10:53 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 28 Feb 2011 10:53:40 +0000 (10:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6872 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/addface.sql
topology/test/regress/addface_expected

index b05af3dc731f5974393122dc26628adc924267c6..bafb7ee599245661045de5d8cecdeac7b35419cb 100644 (file)
@@ -100,6 +100,11 @@ SELECT 't2.f5',  topology.addFace('t2',
 'POLYGON((12 2,12 4,14 4,14 2,12 2))'
 );
 
+-- Attempt to register a not-fully-defined face 
+SELECT topology.addFace('t2',
+'POLYGON((12 2,12 5,14 5,14 2,12 2))'
+);
+
 -- Check added faces
 SELECT face_id, Box2d(mbr) from t2.face ORDER by face_id;
 
index ed6d8ec2bb38f24268ce569f3530b16a217f594e..4961e730174a8fd5fa94bf835a8285af9f4e6cbc 100644 (file)
@@ -64,6 +64,7 @@ t2.f4|4
 WARNING:  Not checking if face contains any edge
 WARNING:  Not updating next_{left,right}_face fields of face boundary edges
 t2.f5|5
+ERROR:  Polygon boundary is not fully defined by existing edges at or near point POINT(12 5)
 0|
 1|BOX(0 0,10 10)
 2|BOX(10 0,20 10)