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

Returns number of interior rings of polygon geometries. It is an alias of [ST\_NumInteriorRings](/reference/wherobots-db/geometry-data/accessors/ST_NumInteriorRings).

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

## Signatures

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

## Parameters

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

## Return type

<ResponseField type="Integer">
  An integer value.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_NumInteriorRing(ST_GeomFromText('POLYGON ((0 0, 0 5, 5 5, 5 0, 0 0), (1 1, 2 1, 2 2, 1 2, 1 1))'))
```

```
1
```
