Skip to main content
Generate a polygon from a list of coordinates separated by a delimiter stored in a string column. SQL reference: ST_PolygonFromText

Signature

Parameters

ColumnOrName
required
String column containing the coordinates.
ColumnOrName
required
Delimiter separating the coordinates, a string constant must be wrapped as a string literal (using pyspark.sql.functions.lit).

Returns

Column
Polygon geometry column generated from the list of coordinates.