适用于:
Databricks SQL
Databricks Runtime 17.1 及更高版本
Important
此功能目前以公共预览版提供。
注释
此功能在 Databricks SQL 经典仓库上不可用。 若要详细了解 Databricks SQL 仓库,请参阅 SQL 仓库类型。
返回与输入 geohash 值对应的 geohash 网格框中心,形式为 2D 点几何。
Syntax
st_pointfromgeohash ( geohash )
Arguments
-
geohash:表示STRINGgeohash 值的值。
Returns
GEOMETRY 类型的值,表示 geohash 网格单元的中心点。
返回点的 SRID 值为 0。
有关地理哈希的更多详细信息,请参阅 维基百科 。
如果输入为 NULL.,则函数返回 NULL 。
Examples
-- Returns the center point of the geohash grid box.
> SELECT st_astext(st_pointfromgeohash('9q8yyh'));
POINT(-122.4261474609375 37.77374267578125)