(Geometry, Geometry)— topological intersection via JTS.(Geography, Geography)— topological intersection via S2.(Box2D, Box2D)— closed-interval bbox intersection on both axes (PostGIS&&onbox2d); edge- and corner-touching boxes count as intersecting. ThrowsIllegalArgumentExceptionon inverted bounds. See Box2D optimization below.(Box3D, Box3D)— closed-interval bbox intersection on all three axes (PostGIS&&&onbox3d). Throws on inverted bounds on any axis.
Signatures
Parameters
The first input.
Box2D / Box3D inputs use closed-interval semantics.The second input, of the same type family as
A.Return type
true if A intersects B.Example
Box3D inputs the test covers all three axes — two boxes whose XY footprints overlap but whose Z ranges are disjoint do not intersect:
Box2D optimization
ST_Intersects(box_col, lit_box) over a Box2D column and a literal Box2D is recognized by Sedona’s spatial optimizer:
- Filter pushdown. When the column is a
Box2Dstored in GeoParquet, the predicate translates to Parquet row-group inequalities on thexmin/ymin/xmax/ymaxleaves. See Box2D filter pushdown. - Spatial join.
ST_Intersects(a, b)between twoBox2Dcolumns is planned as a range or broadcast-index join. See Box2D spatial join.

