h3_boundaryaswkt
Retorna o limite de uma célula H3 no formato WKT. Compatível com Spark Connect.
Para a função Databricks SQL correspondente, consulte a funçãoh3_boundaryaswkt.
Sintaxe
Python
from pyspark.databricks.sql import functions as dbf
dbf.h3_boundaryaswkt(col=<col>)
Parâmetros
Parâmetro | Tipo | Descrição |
|---|---|---|
|
| Um ID de célula H3, representado como uma coluna ou strings. |
Exemplos
Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775,),], ['h3l'])
df.select(dbf.h3_boundaryaswkt('h3l').alias('result')).collect()
Output
[Row(result='POLYGON((-121.915080327 37.271355867,-121.862223289 37.353926451,-121.923549996 37.428341186,-122.037734964 37.420128678,-122.090428929 37.337556084,-122.029101309 37.263197975,-121.915080327 37.271355867))')]