]> granicus.if.org Git - postgis/commitdiff
Added a couple of polygonize tests
authorSandro Santilli <strk@keybit.net>
Fri, 9 Dec 2005 10:14:18 +0000 (10:14 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 9 Dec 2005 10:14:18 +0000 (10:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2152 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress_ogc.sql
regress/regress_ogc_expected

index 9a1274ef76eaacab0c1dd0c2429f40a65ff32601..f767dd69138394072c02325f912be8f70d316960 100644 (file)
@@ -29,6 +29,9 @@ SELECT 'equals', equals('LINESTRING(0 0, 1 1)', 'LINESTRING(1 1, 0 0)');
 SELECT 'pointonsurface', astext(pointonsurface('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0),(2 2, 2 4, 4 4, 4 2, 2 2))'));
 SELECT 'centroid', astext(centroid('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0),(2 2, 2 4, 4 4, 4 2, 2 2))'));
 SELECT 'exteriorring', astext(exteriorring(PolygonFromText('POLYGON((52 18,66 23,73 9,48 6,52 18),(59 18,67 18,67 13,59 13,59 18))')));
+SELECT 'polygonize_garray', astext(polygonize_garray('{0102000000020000000000000000000000000000000000000000000000000024400000000000000000:0102000000020000000000000000002440000000000000000000000000000000000000000000000000:0102000000020000000000000000002440000000000000244000000000000000000000000000000000:0102000000020000000000000000002440000000000000244000000000000024400000000000000000:0102000000020000000000000000002440000000000000244000000000000000000000000000002440:0102000000020000000000000000000000000000000000244000000000000000000000000000002440:0102000000020000000000000000000000000000000000244000000000000024400000000000002440:0102000000020000000000000000000000000000000000244000000000000000000000000000000000:0102000000020000000000000000000000000000000000244000000000000024400000000000000000}'));
+
+SELECT 'polygonize_garray', astext(geometryn(polygonize_garray('{LINESTRING(0 0, 10 0):LINESTRING(10 0, 10 10):LINESTRING(10 10, 0 10):LINESTRING(0 10, 0 0)}'), 1));
 
 --- postgis-devel/2005-December/001784.html
 select 'intersects', intersects(
@@ -36,3 +39,4 @@ select 'intersects', intersects(
       polygonfromtext('POLYGON((0.0 2.0,1.0 2.0,1.0 3.0,0.0 3.0,0.0 2.0))')
       );
 
+
index 4acdb42257d6f4b352463b04d172d06568a945ef..2c3293c69e59eeaf391e2f4290d80ddadd1a955d 100644 (file)
@@ -30,4 +30,6 @@ equals|t
 pointonsurface|POINT(5 5)
 centroid|POINT(5.08333333333333 5.08333333333333)
 exteriorring|LINESTRING(52 18,66 23,73 9,48 6,52 18)
+polygonize_garray|GEOMETRYCOLLECTION EMPTY
+polygonize_garray|POLYGON((10 0,0 0,0 10,10 10,10 0))
 intersects|f