Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

ST_LineFromMultiPoint

Introduction: Creates a LineString from a MultiPoint geometry.

ST_LineFromMultiPoint

Format: ST_LineFromMultiPoint (A: Geometry)

Return type: Geometry

Since: v1.3.0

Example:

SELECT ST_LineFromMultiPoint(ST_GeomFromText('MULTIPOINT((10 40), (40 30), (20 20), (30 10))'))

Output:

LINESTRING (10 40, 40 30, 20 20, 30 10)