Skip to content
πŸŽ‰ Apache Sedona 1.9.1 is out now! πŸ—ΊοΈ Geography SQL functions, Box2D & Box3D types, raster Python UDFs & more. Read the release notes β†’

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

Since: v1.0.0

SQL Example

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

Output:

false