ST_Disjoint

Determine whether two geometries do not intersect, that is, whether their DE-9IM intersection matrix is FF*FF****.

Syntax

ST_Disjoint(geo1, geo2);
geo1
The first input geometry.

Type: ST_GEOMETRY(ANY)

geo2
The second input geometry.

Type: ST_GEOMETRY(ANY)

Returns

A value of type BOOL that is TRUE if the two geometries do not intersect; otherwise FALSE.

Examples

SELECT inza..ST_Disjoint(inza..ST_WKTToSQL('LINESTRING (0 0, 10 10)'),
            inza..ST_WKTToSQL('LINESTRING (0 5, 10 5)'));

ST_DISJOINT
-----------
f
(1 row)