Description
The ST_Disjoint
function tests if two geometry objects have no points in
common.
Syntax
ST_Disjoint(WritableGeometry geometry1, WritableGeometry geometry2)
Parameters
Parameter | Type | Description |
---|---|---|
geometry1 | WritableGeometry | The first instance of a WritableGeometry. |
geometry2 | WritableGeometry | The second instance of a WritableGeometry. |
Return Values
Return Type | Description |
---|---|
Boolean |
True , if the two geometry objects have no points in common;
otherwise, False .If either |
Examples
SELECT ST_Disjoint(ST_GeomFromWKT(t1.geometry, 'epsg:4326'), ST_GeomFromWKT(t2.geometry, 'epsg:4326'))
FROM table1 t1, table2 t2;