- Categories:
H3_ COVERAGE¶
Returns an array of IDs (as INTEGER values) identifying the minimal set of H3 cells that completely cover a shape (specified by a GEOGRAPHY object).
- See also:
语法
实参
geography_expressionGEOGRAPHY 对象。
target_resolutionAn INTEGER between 0 and 15 (inclusive) specifying the H3 resolution (https://h3geo.org/docs/core-library/restable) that you want to use for the returned H3 cells.
指定其他任何 INTEGER 值都会导致错误。
返回
返回 INTEGER 值的 ARRAY,适用于已完全覆盖指定输入形状的最小 H3 单元格集的 IDs。
使用说明
- The function uses spherical approximation, which treats points on the Earth’s surface as if they were connected by arcs, rather than straight lines. If you need a planar approximation, use H3_POLYGON_TO_CELLS instead.
- 如果单元格的边界与输入形状相交,则该单元格将包含在结果集中。
- When you apply FLATTEN to the ARRAY returned by the function, cast each value explicitly to an integer.
示例
以下示例返回一个 IDs 的 ARRAY,用于标识完全覆盖指定多边形的最小 H3 单元格集。