This topic describes the ST_LineFromMultiPoint function. This function constructs a LineString object by using a MultiPoint object.

Syntax

geometry  ST_LineFromMultiPoint(geometry  aMultiPoint);

Parameters

Parameter Description
aMultiPoint The MultiPoint object that you want to specify.

Examples

SELECT ST_AsText(ST_LineFromMultiPoint(ST_GeomFromEWKT('MULTIPOINT(1 2,3 4,5 6)')));
        st_astext
-------------------------
 LINESTRING(1 2,3 4,5 6)
(1 row)