ST_Disjoint¶
Returns true if geomA is disjoint from geomB.
Usage¶
boolean ST_Disjoint(geomA: geometry, geomB: geometry)
Arguments¶
- geomA (geometry): Input geometry
- geomB (geometry): Input geometry
Description¶
Returns true if the two geometries do not share any points. This is
the inverse of ST_Intersects.
Examples¶
SELECT ST_Disjoint(
ST_Point(0.25, 0.25),
ST_GeomFromText('POLYGON ((0 0, 1 0, 0 1, 0 0))')
) AS val;
┌─────────┐
│ val │
│ boolean │
╞═════════╡
│ false │
└─────────┘