> ## 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

RETURN true if LINESTRING is ST\_IsClosed and ST\_IsSimple.

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_IsRing/ST_IsRing.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=6f7e393a785d098a9597cd5b40f7b1b8" alt="ST_IsRing" width="500" height="300" data-path="images/sql-functions/ST_IsRing/ST_IsRing.svg" />

## Signatures

```sql theme={"system"}
ST_IsRing(geom: Geometry)
```

## Parameters

<ParamField body="geom" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Boolean">
  Returns `true` or `false`.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_IsRing(ST_GeomFromText('LINESTRING(0 0, 0 1, 1 1, 1 0, 0 0)'))
```

```
true
```
