ST_IsClosed
Accessors
ST_IsClosed (Python)
Check if the linestring in a geometry column is closed (its end point is equal to its start point).
Check if the linestring in a geometry column is closed (its end point is equal to its start point).
SQL reference:

