ST_NRings — Devuelva el número de anillos interiores de una geometría poligonal.
integer ST_NRings(
geometry geomA)
;
Si la geometria es un polígono o un multi-polígono devuelve el numero de anillos. Al contrario que NumInteriorRings, cuenta el anille exterior tambien.
This function supports 3d and will not drop the z-index.
This method supports Circular Strings and Curves.
SELECT ST_NRings(geom) As Nrings, ST_NumInteriorRings(geom) As ninterrings FROM (SELECT ST_GeomFromText('POLYGON((1 2, 3 4, 5 6, 1 2))') As geom) As foo; nrings | ninterrings --------+------------- 1 | 0 (1 row)