ST_MAKELINE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Geospatial functions

Constructs a GEOGRAPHY or GEOMETRY object that represents a line connecting the points in the input objects.

Syntax

ST_MAKELINE( <geography_expression_1> , <geography_expression_2> )

ST_MAKELINE( <geometry_expression_1> , <geometry_expression_2> )

Parameters

NameRequiredDescription
geography_expression_1requiredA GEOGRAPHY object containing the points to connect. This object must be a Point, MultiPoint, or LineString.
geography_expression_2requiredA GEOGRAPHY object containing the points to connect. This object must be a Point, MultiPoint, or LineString.
geometry_expression_1requiredA GEOMETRY object containing the points to connect. This object must be a Point, MultiPoint, or LineString.
geometry_expression_2requiredA GEOMETRY object containing the points to connect. This object must be a Point, MultiPoint, or LineString.

Returns

The function returns a value of type GEOGRAPHY or GEOMETRY. The value is a LineString that connects all of the points specified by the input GEOGRAPHY or GEOMETRY objects.

Usage notes

See also