Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

ST_NumInteriorRings

Introduction: Returns number of interior rings of polygon geometries.

Format: ST_NumInteriorRings(geom: Geometry)

Since: v1.3.0

Example:

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))'))

Output:

1