Add tests for ND overlap operator &&&
authorSandro Santilli <strk@keybit.net>
Thu, 19 Feb 2015 16:22:09 +0000 (16:22 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 19 Feb 2015 16:22:09 +0000 (16:22 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13245 b70326c6-7e19-0410-871a-916f4a2858ee

regress/operators.sql
regress/operators_expected

index ef23695a6674887174fb832107685885fcaa8704..eef3afe9abb0256c27ad354df3fc93e901357d87 100644 (file)
@@ -97,5 +97,20 @@ select 'bd1', 'LINESTRING(0 0,0 10,10 10)'::geometry <#>
 select 'bd2', 'LINESTRING(0 0,0 10,10 10)'::geometry <#>
               'LINESTRING(11 0,19 10)'::geometry; -- 1
 
--- TODO: nd overlap         &&&
-
+-- nd overlap             &&&
+
+select 'ndov1', 'LINESTRING(2 2 2 2, 4 4 4 4)'::geometry &&&
+                'POINT(3 3 3 5)'::geometry; -- f
+select 'ndov2', 'LINESTRING(2 2 2 2, 4 4 4 4)'::geometry &&&
+                'POINT(3 3 5 3)'::geometry; -- f
+select 'ndov3', 'LINESTRING(2 2 2 2, 4 4 4 4)'::geometry &&&
+                'POINT(3 5 3 3)'::geometry; -- f
+select 'ndov4', 'LINESTRING(2 2 2 2, 4 4 4 4)'::geometry &&&
+                'POINT(5 3 3 3)'::geometry; -- f
+select 'ndov5', 'LINESTRING(2 2 2 2, 4 4 4 4)'::geometry &&&
+                'POINT(3 3 3 3)'::geometry; -- t
+select 'ndov6', 'LINESTRING(2 2 2 2, 4 4 4 4)'::geometry &&&
+                'POINT(2 4 2 4)'::geometry; -- t
+select 'ndov7', 'LINESTRING(2 2 2 2, 4 4 4 4)'::geometry &&&
+                'POINT(4 2 4 2)'::geometry; -- t
+-- TODO: mixed-dimension &&& overlap
index 13582275dda6e95d02fa76db7f1729eef6cf68df..4b318d24726a1f3569c260994c0b65dac4b180dc 100644 (file)
@@ -48,3 +48,10 @@ cd1|1
 cd2|10
 bd1|0
 bd2|1
+ndov1|f
+ndov2|f
+ndov3|f
+ndov4|f
+ndov5|t
+ndov6|t
+ndov7|t