Skip to content
Apache Sedona 1.9.0 is out now, featuring Spark 4.1 support, proj4sedona CRS transformation, Bing Tile functions, and more!

ST_Contains

Introduction: Return true if A fully contains B

ST_Contains returning true ST_Contains returning false

Format: ST_Contains (A: Geometry, B: Geometry)

Return type: Boolean

Since: v1.2.0

Example:

SELECT ST_Contains(ST_GeomFromWKT('POLYGON((175 150,20 40,50 60,125 100,175 150))'), ST_GeomFromWKT('POINT(174 149)'))

Output:

false