# ST\_IsRing

## Syntax

```sql
ST_IsRing(g)
IsRing(g)
```

## Description

Returns true if a given [LINESTRING](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/geometry-constructors/linestring) is a ring, that is, both [ST\_IsClosed](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/geometry-properties/st_isclosed) and [ST\_IsSimple](https://mariadb.com/docs/server/reference/sql-statements/geometry-constructors/geometry-properties/st_issimple). A simple curve does not pass through the same point more than once. However, see [MDEV-7510](https://jira.mariadb.org/browse/MDEV-7510).

`St_IsRing()` and `IsRing()` are synonyms.

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
