> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_IsRing (Python)

> Check if a linestring geometry is both closed and simple.

Check if a linestring geometry is both closed and simple.

SQL reference: [`ST_IsRing`](/reference/wherobots-db/geometry-data/accessors/ST_IsRing)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_functions import ST_IsRing

ST_IsRing(line_string: ColumnOrName) -> Column
```

## Parameters

<ParamField path="line_string" type="ColumnOrName" required>
  Linestring geometry column to check.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  True if the linestring is both closed and simple and False otherwise as a boolean column.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.