ST_NRings — ジオメトリがポリゴンまたはマルチポリゴンの場合、リング数を返します。
integer ST_NRings(geometry geomA);
ジオメトリがポリゴンまたはマルチポリゴンの場合、リング数を返します。NumInteriorRingsと違い、外環も数えます。
This function supports 3d and will not drop the z-index.
This method supports Circular Strings and Curves