跳转至
Apache Sedona 1.9.0 已正式发布,新增 Spark 4.1 支持、proj4sedona 坐标系转换、Bing Tile 函数等众多特性!

ST_DumpPoints

Introduction: Returns a MultiPoint geometry which consists of individual points that compose the input line string.

ST_DumpPoints

Format: ST_DumpPoints(geom: geometry)

Return type: Array<Geometry>

SQL example:

SELECT ST_DumpPoints(ST_GeomFromText('LINESTRING (0 0, 1 1, 1 0)'))

Output: MultiPoint ((0 0), (0 1), (1 1), (1 0), (0 0))