Skip to main content
RETURNS true if the LINESTRING start and end point are the same. ST_IsClosed

Signatures

ST_IsClosed(geom: Geometry)

Parameters

geom
Geometry
required
The input geometry.

Return type

Returns true or false.

Example

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