Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

ST_NumInteriorRings

Introduction: Returns number of interior rings of polygon geometries.

ST_NumInteriorRings

Format: ST_NumInteriorRings(geom: Geometry)

Return type: Integer

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