Skip to main content
Check whether a contains b. Polymorphic over input type: Geometry/Geometry (JTS), Geography/Geography (S2), Box2D/Box2D (closed-interval bbox containment, PostGIS ~), and Box3D/Box3D (closed-interval bbox containment on all three axes). SQL reference: ST_Contains

Signature

Parameters

ColumnOrName
required
Geometry column to check containment for.
ColumnOrName
required
Geometry column to check containment of.

Returns

Column
True if geometry a contains geometry b and False otherwise as a boolean column.