Skip to main content
Tests whether one spatial value contains another. For the native overloads, a point on the exterior boundary or on a hole boundary is outside the polygon interior.

Syntax

Native overloads

The native overloads accept an XY POINT as the second argument and an XY POLYGON or MULTIPOLYGON as the first. Both GEOMETRY arguments must have matching descriptors. Mixed native GEOGRAPHY/GEOMETRY calls are rejected. NULL propagates, and an EMPTY input returns false.

Legacy overloads

Both arguments use the legacy VARCHAR shape encoding.

Examples

Keywords

ST_CONTAINS,ST,CONTAINS GEOGRAPHY, GEOMETRY, VARCHAR, BOOLEAN