mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
Add test for invalid AddFace call (polygon not fully defined by known edges)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6872 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
a9c3c02823
commit
af1dfe5f63
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue