Skip to main content
Convert multi-coordinate LineString into an array of LineStrings that contain exactly 2 points. SQL reference: ST_LineSegments

Signature

Parameters

ColumnOrName
required
Input LineString geometry column.
Optional[Union[ColumnOrName, bool]]
default:"None"
Whether to suppress the error raised when the input is not a LineString. Default is True.

Returns

Column
Array of LineStrings.