名前

ST_Node — ラインストリングの集合にノードを作成します。

概要

geometry ST_Node(geometry geom);

説明

最小の可能なノード数を使ってラインストリングにノードを作成します。全ての入力ラインストリングは保存されます。

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

GEOSモジュールで実現しています。

Availability: 2.0.0

Changed: 2.4.0 この関数は内部でGEOSUnaryUnionの替わりにGEOSNodeを使用しています。ラインストリングの並び順と方向がPostGIS 2.4より前のものと違うことになるかも知れません。

SELECT ST_AsText(
                ST_Node('LINESTRINGZ(0 0 0, 10 10 10, 0 10 5, 10 0 3)'::geometry)
        ) As  output;
output
-----------
MULTILINESTRING Z ((0 0 0,5 5 4.5),(5 5 4.5,10 10 10,0 10 5,5 5 4.5),(5 5 4.5,10 0 3))
                

関連情報

ST_UnaryUnion