]> granicus.if.org Git - postgis/commitdiff
Added user-reported intersects() test
authorSandro Santilli <strk@keybit.net>
Tue, 6 Dec 2005 14:51:38 +0000 (14:51 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 6 Dec 2005 14:51:38 +0000 (14:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2140 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress_ogc.sql
regress/regress_ogc_expected

index cf83fcdb9feb0230a51738d408cb99d4cfc59b9c..9a1274ef76eaacab0c1dd0c2429f40a65ff32601 100644 (file)
@@ -30,3 +30,9 @@ SELECT 'pointonsurface', astext(pointonsurface('POLYGON((0 0, 0 10, 10 10, 10 0,
 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))')));
 
+--- postgis-devel/2005-December/001784.html
+select 'intersects', intersects(
+   polygonfromtext('POLYGON((0.0 0.0,1.0 0.0,1.0 1.0,1.0 0.0,0.0 0.0))'),
+      polygonfromtext('POLYGON((0.0 2.0,1.0 2.0,1.0 3.0,0.0 3.0,0.0 2.0))')
+      );
+
index dd1e948fb9d0c7e5d13d836ee0766eeea4006e45..4acdb42257d6f4b352463b04d172d06568a945ef 100644 (file)
@@ -30,3 +30,4 @@ equals|t
 pointonsurface|POINT(5 5)
 centroid|POINT(5.08333333333333 5.08333333333333)
 exteriorring|LINESTRING(52 18,66 23,73 9,48 6,52 18)
+intersects|f