Skip to main content
Generate a linestring geometry column from a list of coords separated by a delimiter in a string column. SQL reference: ST_LineStringFromText

Signature

Parameters

ColumnOrName
required
String column containing a list of coords.
ColumnOrName
required
Delimiter that separates each coordinate in the coords column, a string constant must be wrapped as a string literal (using pyspark.sql.functions.lit).

Returns

Column
Linestring geometry column generated from the list of coordinates.