Compartir a través de

st_pointfromgeohash 函数

适用于:已勾选“是”的 Databricks Runtime 17.1 及更高版本

重要

此功能目前以公共预览版提供。

返回与输入 geohash 值对应的 geohash 网格框中心,形式为 2D 点几何。

语法

st_pointfromgeohash ( geohash )

论据

  • geohash:表示 STRING geohash 值的值。

退货

GEOMETRY 类型的值,表示 geohash 网格单元的中心点。

返回点的 SRID 值为 0。

如果输入为 NULL.,则函数返回 NULL

例子

-- Returns the center point of the geohash grid box.
> SELECT st_astext(st_pointfromgeohash('9q8yyh'));
  POINT(-122.4261474609375 37.77374267578125)