跳转至
🎉 SedonaDB 0.4.0 已正式发布!🗺️ 新增 Python DataFrame API、R dplyr 接口、Geography 支持及 GPU 加速空间连接。阅读发布博客 →

ST_NumInteriorRing

Introduction: Returns number of interior rings of polygon geometries. It is an alias of ST_NumInteriorRings.

ST_NumInteriorRing

Format: ST_NumInteriorRing(geom: Geometry)

Return type: Integer

SQL Example

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

Output:

1