ST_Intersects(A, B) returns true if the shapes share any of the same space — that is, if any point in the set that comprises A is also a member of the set of points that make up B.
ST_Intersects works on the following data types:
ST_Intersects will attempt to use any available spatial index to speed up its
operation. Use the prefixed variant _ST_Intersects if you do not want any spatial indexes to be used.This function is the inverse of
ST_Disjoint.Examples
The screenshots in these examples were generated using geojson.io, but they are designed to
showcase the shapes, not the map. Representing
GEOMETRY data in GeoJSON can lead to unexpected results if using
geometries with SRIDs other than 4326 (as shown below).True
In this example,ST_Intersects returns true because:
- The shapes share some of the same space — that is, there are Points in the set that comprises Polygon A that are also members of Polygon B.

False
In this example,ST_Intersects returns false because:
- The shapes do not share any of the same space — that is, there are no Points in the set that comprises Polygon A that are also members of Polygon B.

See also
- Export Spatial Data
- Spatial tutorial
- Spatial and GIS Glossary of Terms
- Spatial indexes
- Spatial functions
ST_CoversST_CoveredByST_ContainsST_WithinST_CoveredByST_CoversST_DisjointST_EqualsST_OverlapsST_TouchesST_ConvexHullST_Union- Migrate from Shapefiles
- Migrate from GeoJSON
- Migrate from GeoPackage
- Migrate from OpenStreetMap
- Introducing Distributed Spatial Data in CockroachDB (blog post)
- Using GeoServer with CockroachDB

