This topic describes the ST_NumInteriorRing function. This function returns the number of interior rings of the input geometry object.
Syntax
integer ST_NumInteriorRing(geometry aPolygon);
Parameters
Parameter | Description |
---|---|
aPolygon | The geometry object that you want to specify. |
Examples
SELECT ST_NumInteriorRing('POLYGON((1 0,0 3,3 0,1 0),(1 0,2 0,0 2,1 0))'::geometry);
st_numinteriorring
--------------------
1
(1 row)