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.

