Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

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