- Categories:
H3_ POLYGON_ TO_ CELLS_ STRINGS¶
Returns an array of VARCHAR values of the hexadecimal IDs of H3 cells that have centroids contained by a Polygon (specified by a GEOGRAPHY object).
- See also:
语法
实参
geography_polygon表示多边形的 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 cells.
指定其他任何 INTEGER 值都会导致错误。
返回
返回一个数组,其中包含 H3 单元格十六进制 IDs 的 VARCHAR 值,这些单元格的质心包含在指定的输入多边形中。
使用说明
- The function uses planar approximation, which treats points on the Earth’s surface as if they were connected by straight lines, rather than curved arcs. If you need a spherical approximation, use H3_COVERAGE_STRINGS instead.
- 如果单元格的质心包含在多边形内,则认为该单元格位于多边形内。
示例
以下示例返回表示 H3 单元格十六进制 IDs 的 VARCHAR 值 ARRAY,这些单元格的质心包含在指定的多边形中。