Name

ST_Points — 返回包含几何图形坐标的多点。

Synopsis

geometry ST_Points( geometry geom );

描述

返回包含几何图形的所有坐标的多点。将保留重复的点,包括环形几何图形的起点和终点。(如果需要,可以通过调用 ST_RemoveRepeatedPoints 在结果上)。

要获取有关父几何中每个坐标位置的信息,请使用 ST_DumpPoints

如果存在M和Z坐标,则会保留它们。

This method supports Circular Strings and Curves

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

可用性:2.3.0

示例

SELECT ST_AsText(ST_Points('POLYGON Z ((30 10 4,10 30 5,40 40 6, 30 10))'));

--result
MULTIPOINT Z ((30 10 4),(10 30 5),(40 40 6),(30 10 4))
                        

另请参阅

ST_RemoveRepeatedPoints, ST_DumpPoints