ST_Disjoint — Tests if a Geometry is spatially disjoint from another Geometry.
boolean ST_Disjoint(
bytea GeomA, bytea GeomB)
;
Tests if a Geometry is spatially disjoint from another Geometry, retuns TRUE if so.
The disjoint predicate has the following equivalent definitions:
This method does not support GeometryCollection arguments |
2D | 3D | M |
---|---|---|
OGC SFS for SQL. 1.1 (1999) | OGC SFS for SQL. 1.1.0 (2005) | OGC SFS for SQL. 1.2.0 (2006) | SQL-MM Part 3 |
---|---|---|---|
2.1.1.2 , 2.1.13.3 | 7.2.19.1 | 7.2.8.1 | 5.1.26 |
SELECT ST_Disjoint(ga,gb) from (SELECT ST_GeomFromText('POLYGON ((10 30, 0 10, 30 20, 30 30, 20 40, 10 30))') as ga, ST_GeomFromText('POLYGON ((40 30, 40 20, 60 40, 50 40, 40 30))') as gb) as foo; st_disjoint ------------- t SELECT ST_Disjoint(ga,gb) from (SELECT ST_GeomFromText('POLYGON ((3 3, 3 8, 8 8, 8 3, 3 3))') as ga, ST_GeomFromText('POLYGON ((1 1, 1 6, 5 6, 5 1, 1 1))') as gb) as foo; st_disjoint ------------- f