名前

ST_InteriorRingN — ポリゴンのN番目の内環 (穴)を返します。

概要

geometry ST_InteriorRingN(geometry a_polygon, integer n);

説明

ポリゴンジオメトリのN番目の内環のラインストリングを返します。ジオメトリがポリゴンでないまたはNが範囲外であるならばNULLを返します。インデックスは1始まりです。

[注記]

この関数はMULTIPOLYGONでは動作しません。MULTIPOLYGONについてはST_Dumpを併用して下さい。

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.

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

関連情報

ST_ExteriorRing ST_BuildArea, ST_Collect, ST_Dump, ST_NumInteriorRing, ST_NumInteriorRings