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

ST_Crosses

Introduction: Return true if A crosses B

ST_Crosses returning true ST_Crosses returning false

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

Return type: Boolean

Since: v1.0.0

SQL Example

SELECT ST_Crosses(ST_GeomFromWKT('POLYGON((1 1, 4 1, 4 4, 1 4, 1 1))'),ST_GeomFromWKT('POLYGON((2 2, 5 2, 5 5, 2 5, 2 2))'))

Output:

false