メインコンテンツまでスキップ

h3_centeraswkt

H3 セルの中心をWKT 形式で返します。Spark Connect をサポートします。

対応する Databricks SQL 関数については、 h3_centeraswkt関数を参照してください。

構文

Python
from pyspark.databricks.sql import functions as dbf

dbf.h3_centeraswkt(col=<col>)

パラメーター

パラメーター

Type

説明

col

pyspark.sql.Column または str

または文字列として表される H3 セル ID。

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)')]