次の方法で共有


h3_centeraswkt

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

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

構文

from pyspark.databricks.sql import functions as dbf

dbf.h3_centeraswkt(col=<col>)

パラメーター

パラメーター タイプ Description
col pyspark.sql.Column または str または文字列として表される H3 セル ID。

例示

from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775,),], ['h3l'])
df.select(dbf.h3_centeraswkt('h3l').alias('result')).collect()
[Row(result='POINT(-121.976375973 37.345793375)')]