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

ST_IsClosed

Introduction: RETURNS true if the LINESTRING start and end point are the same.

ST_IsClosed

Format: ST_IsClosed(geom: geometry)

Return type: Boolean

SQL example:

SELECT ST_IsClosed(ST_GeomFromText('LINESTRING(0 0, 1 1, 1 0)'))

Output: false