ST_MAKELINE (Lakehouse v1)
Constructs a GEOMETRY object that represents a line connecting the points in the input two GEOMETRY objects.
SQL Syntax
Section titled “SQL Syntax”ST_MAKELINE(<geometry1>, <geometry2>)Aliases
Section titled “Aliases”Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<geometry1> | A GEOMETRY object containing the points to connect. This object must be a Point, MultiPoint, or LineString. |
<geometry2> | A GEOMETRY object containing the points to connect. This object must be a Point, MultiPoint, or LineString. |
Return Type
Section titled “Return Type”Geometry.
SQL Examples
Section titled “SQL Examples”SELECT ST_MAKELINE( ST_GEOMETRYFROMWKT( 'POINT(-122.306100 37.554162)' ), ST_GEOMETRYFROMWKT( 'POINT(-104.874173 56.714538)' ) ) AS pipeline_line;
┌───────────────────────────────────────────────────────┐│ pipeline_line │├───────────────────────────────────────────────────────┤│ LINESTRING(-122.3061 37.554162,-104.874173 56.714538) │└───────────────────────────────────────────────────────┘