The ST_Disjoint function takes two geometries
as input parameters and returns 1 if the specified geometries do not intersect.
If the geometries do intersect, then 0 (zero) is returned.
If the second geometry is not represented in the same
spatial reference system as the first geometry, it will be converted
to the other spatial reference system.
If any of the two geometries
is null or is empty, then null value is returned.
Syntax
Parameter
geometry1
A value of type ST_Geometry that represents the geometry that
is tested to be disjoint with geometry2.
geometry2
A value of type ST_Geometry that represents the geometry that
that is tested to be disjoint with geometry1.
Return type
INTEGER
Examples
Example 1
This code creates several geometries in the SAMPLE_GEOMETRIES
table.