ST_InteriorRingN — Returns the Nth interior ring (hole) of a Polygon.
geometry ST_InteriorRingN(
geometry a_polygon, integer n)
;
Returns the Nth interior linestring ring of the polygon geometry. Returns NULL if the geometry is not a polygon or the given N is out of range. The index starts at 1.
This function does not support for MULTIPOLYGONs. Use in conjunction with ST_Dump for MULTIPOLYGONS |
This method implements the OpenGIS 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.