- Categories:
H3_ POINT_ TO_ CELL_ STRING¶
Returns the hexadecimal value of an H3 cell ID for a Point (specified by a GEOGRAPHY object) at a given resolution.
- See also:
语法
实参
geography_point表示一个点的 GEOGRAPHY 对象。
target_resolutionAn INTEGER between 0 and 15 (inclusive) that specifies the H3 resolution (https://h3geo.org/docs/core-library/restable) that you want to use for the returned H3 cell.
指定其他任何 INTEGER 值都会导致错误。
返回
返回与给定位置和分辨率的十六进制 H3 单元格 ID 相对应的 VARCHAR 值。
示例
以下示例以分辨率 8 返回勃兰登堡门的十六进制 H3 单元格 ID。
下面的示例演示您不能指定 0 到 15 之外的分辨率。