st_asewkt
Preview
This feature is in Public Preview. You can confirm preview enrollment on the Previews page. See Manage Databricks previews.
Returns the input Geography or Geometry value in EWKT format.
For the corresponding Databricks SQL function, see st_asewkt function.
Syntax
Python
from pyspark.databricks.sql import functions as dbf
dbf.st_asewkt(col=<col>)
Parameters
Parameter | Type | Description |
|---|---|---|
|
|
Examples
Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('POINT Z (2.718281 3.141592 100)',)], ['wkt'])
df.select(dbf.st_asewkt(dbf.st_geogfromtext('wkt')).alias('result')).collect()
Output
[Row(result='SRID=4326;POINT Z (2.718281 3.141592 100)')]