Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

ST_Covers

Introduction: Return true if A covers B

ST_Covers returning true ST_Covers returning false

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

Return type: Boolean

Since: v1.3.0

Example:

SELECT ST_Covers(ST_GeomFromWKT('POLYGON((-2 0,0 2,2 0,-2 0))'), ST_GeomFromWKT('POLYGON((-1 0,0 1,1 0,-1 0))'))

Output:

true