From: Sandro Santilli Date: Thu, 19 Feb 2015 16:22:09 +0000 (+0000) Subject: Add tests for ND overlap operator &&& X-Git-Tag: 2.2.0rc1~654 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=179b72eda042780620f92ea63fd8b73e8200c0ed;p=postgis Add tests for ND overlap operator &&& git-svn-id: http://svn.osgeo.org/postgis/trunk@13245 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/operators.sql b/regress/operators.sql index ef23695a6..eef3afe9a 100644 --- a/regress/operators.sql +++ b/regress/operators.sql @@ -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 diff --git a/regress/operators_expected b/regress/operators_expected index 13582275d..4b318d247 100644 --- a/regress/operators_expected +++ b/regress/operators_expected @@ -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