Skip to main content
RETURN true if LINESTRING is ST_IsClosed and ST_IsSimple. ST_IsRing

Signatures

ST_IsRing(geom: Geometry)

Parameters

geom
Geometry
required
The input geometry.

Return type

Returns true or false.

Example

SELECT ST_IsRing(ST_GeomFromText('LINESTRING(0 0, 0 1, 1 1, 1 0, 0 0)'))
true