Name

ST_Disjoint — 如果两个几何图形不相交(它们没有共同点),则返回True。

Synopsis

boolean ST_Disjoint( geometry A , geometry B );

描述

重叠、接触,所有这些都意味着几何图形在空间上不是不相交的。如果上述任一项返回TRUE,则这些几何图形在空间上不是不相交的。对于空间相交,不相交意味着FALSE。

[Important]

增强:已启用3.0.0支持 GEOMETRYCOLLECTION

由GEOS模块执行

[Note]

此函数调用不使用索引

[Note]

注意:这是“允许的”版本,返回布尔值,而不是整数。

This method implements the OGC Simple Features Implementation Specification for SQL 1.1. S2.1.1.2//s2.1.13.3-a.Relate(b,‘Ff*Ff*’)

This method implements the SQL/MM specification. SQL-MM 3:5.1.26

示例

SELECT ST_Disjoint('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry);
 st_disjoint
---------------
 t
(1 row)
SELECT ST_Disjoint('POINT(0 0)'::geometry, 'LINESTRING ( 0 0, 0 2 )'::geometry);
 st_disjoint
---------------
 f
(1 row)
    

另请参阅

ST_Intersects