Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
重要
此功能目前以公共预览版提供。
分析扩展 Well-Known 文本(EWKT)
地理说明并返回相应的 Geography 值。 仅支持 SRID 4326。
有关相应的 Databricks SQL 函数,请参阅 st_geogfromewkt 函数。
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.st_geogfromewkt(col=<col>)
参数
| 参数 | 类型 | Description |
|---|---|---|
col |
pyspark.sql.Column 或 str |
一个字符串值,表示扩展 WKT(EWKT) 中的地理区域 |
格式。 |
注释
返回的 Geography 值的 SRID 为 4326。
如果输入为 None.,则函数返回 None 。
例子
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('SRID=4326;POINT Z (1 2 3)',)], ['ewkt'])
df.select(dbf.st_asewkt(dbf.st_geogfromewkt('ewkt')).alias('result')).collect()
[Row(result='SRID=4326;POINT Z (1 2 3)')]