]> granicus.if.org Git - postgis/commitdiff
Added isvalid(empty) test
authorSandro Santilli <strk@keybit.net>
Fri, 10 Jun 2005 09:54:00 +0000 (09:54 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 10 Jun 2005 09:54:00 +0000 (09:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1753 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress_ogc.sql
regress/regress_ogc_expected

index f62f482bbc0bab5c201d96ab470caa91464e92e5..01ffa1bcd6930c77eb198b000ae9e1f196b3b458 100644 (file)
@@ -18,6 +18,7 @@ SELECT 'contains', contains('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))','POINT(5 5)
 SELECT 'overlaps', overlaps('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))','POINT(5 5)');
 SELECT 'isvalid', isvalid('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))');
 SELECT 'isvalid', isvalid('POLYGON((0 0, 0 10, 10 10, -5 10, 10 0, 0 0))');
+SELECT 'isvalid', isvalid('GEOMETRYCOLLECTION EMPTY');
 SELECT 'intersection', astext(intersection('LINESTRING(0 10, 0 -10)', 'LINESTRING(0 0, 1 1)'));
 SELECT 'difference', astext(difference('LINESTRING(0 10, 0 -10)', 'LINESTRING(0 2, 0 -2)'));
 SELECT 'boundary', astext(boundary('POLYGON((0 0, 0 10, 10 10, 10 0, 0 0),(2 2, 2 4, 4 4, 4 2, 2 2))'));
index 1c2db16450c6d42898f28b854b7d1ec3d3dd0362..6004892ace59c0806d62c50be30c66510c18f2d6 100644 (file)
@@ -18,6 +18,7 @@ contains|t
 overlaps|f
 isvalid|t
 isvalid|f
+isvalid|t
 intersection|POINT(0 0)
 difference|MULTILINESTRING((0 10,0 2),(0 -2,0 -10))
 boundary|MULTILINESTRING((0 0,0 10,10 10,10 0,0 0),(2 2,2 4,4 4,4 2,2 2))