Name

ST_InteriorRingN — Devuelva el número de anillos interiores de una geometría poligonal.

Synopsis

geometry ST_InteriorRingN(geometry a_polygon, integer n);

Descripción

Devuelve la cadena de texto del anillo interior N del poligono. Devuelve NULL si la geometría no es un polígono o el indice N dado esta fuera de rango.

[Note]

Esto no funcionara con MULTIPOLYGONs. Para MULTIPOLYGONs utilizaba junto a ST_Dump.

This method implements the OGC Simple Features Implementation Specification for SQL 1.1.

This method implements the SQL/MM specification.

SQL-MM 3: 8.2.6, 8.3.5

This function supports 3d and will not drop the z-index.

Ejemplos

SELECT ST_AsText(ST_InteriorRingN(geom, 1)) As geom
FROM (SELECT ST_BuildArea(
                ST_Collect(ST_Buffer(ST_Point(1,2), 20,3),
                        ST_Buffer(ST_Point(1, 2), 10,3))) As geom
                )  as foo;
                

Ver también

ST_ExteriorRing, ST_M, ST_X, ST_Y, ST_ZMax, ST_ZMin