h3_centeraswkt
Renvoie le centre d'une cellule H3 au format WKT. Prend en charge Spark Connect.
Pour la fonction Databricks SQL correspondante, consultez la fonctionh3_centeraswkt.
Syntaxe
Python
from pyspark.databricks.sql import functions as dbf
dbf.h3_centeraswkt(col=<col>)
parameter
parameter | Type | Description |
|---|---|---|
|
| Un ID de cellule H3, représenté comme une Colonne ou une chaîne de caractères. |
Exemples
Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775,),], ['h3l'])
df.select(dbf.h3_centeraswkt('h3l').alias('result')).collect()
Output
[Row(result='POINT(-121.976375973 37.345793375)')]