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

RETURNS number of interior rings of polygon geometries.

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

## Signatures

```sql theme={"system"}
ST_NumInteriorRings(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_NumInteriorRings(ST_GeomFromText('POLYGON ((0 0, 0 5, 5 5, 5 0, 0 0), (1 1, 2 1, 2 2, 1 2, 1 1))'))
```

```
1
```
