H3 cell to children(H3 单元转子单元(H3 cell to children))¶
Supported in: Batch, Faster, Streaming
Get children of an H3 index at given resolution specifying children coarseness. Returns null for resolution <0 or >15 or for children resolution lower than given H3 index's resolution.
Expression categories: Geospatial
Declared arguments¶
- Children resolution: H3 grid children resolution between 0 and 15 (inclusive).
Expression\ - H3 index: A valid H3 index.
Expression\
Output type: Array\
Examples¶
Example 1: Base case¶
Argument values:
- Children resolution:
childrenResolution - H3 index:
h3Index
| h3Index | childrenResolution | Output |
|---|---|---|
| 85283473fffffff | 6 | [ 862834707ffffff, 86283470fffffff, 862834717ffffff, 86283471fffffff, 862834727ffffff, 86283472fffffff, 862834737ffffff ] |
| 881F1D4887FFFFF | 9 | [ 891f1d48863ffff, 891f1d48867ffff, 891f1d4886bffff, 891f1d4886fffff, 891f1d48873ffff, 891f1d48877ffff, 891f1d4887bffff ] |
| 86be8d12fffffff | 8 | [ 88be8d1281fffff, 88be8d1283fffff, 88be8d1285fffff, 88be8d1287fffff, 88be8d1289fffff, 88be8d128bfff... |
Example 2: Null case¶
Argument values:
- Children resolution:
childrenResolution - H3 index:
h3Index
| h3Index | childrenResolution | Output |
|---|---|---|
| 85283473fffffff | 4 | null |
Example 3: Null case¶
Argument values:
- Children resolution:
childrenResolution - H3 index:
h3Index
| h3Index | childrenResolution | Output |
|---|---|---|
| 87283472bgggggg | 9 | null |
| 860800017ffffff | -1 | null |
| 860800017ffffff | 16 | null |
| null | 6 | null |
| 860800017ffffff | null | null |
Example 4: Edge case¶
Argument values:
- Children resolution:
childrenResolution - H3 index:
h3Index
| h3Index | childrenResolution | Output |
|---|---|---|
| 8e1fb46741ae99f | 15 | [ 8f1fb46741ae998, 8f1fb46741ae999, 8f1fb46741ae99a, 8f1fb46741ae99b, 8f1fb46741ae99c, 8f1fb46741ae99d, 8f1fb46741ae99e ] |
Example 5: Edge case¶
Argument values:
- Children resolution:
childrenResolution - H3 index:
h3Index
| h3Index | childrenResolution | Output |
|---|---|---|
| 8029fffffffffff | 0 | [ 8029fffffffffff ] |
Example 6: Edge case¶
Argument values:
- Children resolution:
childrenResolution - H3 index:
h3Index
| h3Index | childrenResolution | Output |
|---|---|---|
| 8928308280fffff | 9 | [ 8928308280fffff ] |
中文翻译¶
H3 单元转子单元(H3 cell to children)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
获取指定分辨率下 H3 索引的子单元,并指定子单元的粗略程度。当分辨率 <0 或 >15,或子单元分辨率低于给定 H3 索引的分辨率时,返回 null。
表达式类别: 地理空间(Geospatial)
声明的参数¶
- 子单元分辨率(Children resolution): H3 网格子单元分辨率,取值范围为 0 到 15(含)。
表达式\ - H3 索引(H3 index): 有效的 H3 索引。
表达式\
输出类型: 数组\
示例¶
示例 1:基本情况¶
参数值:
- 子单元分辨率:
childrenResolution - H3 索引:
h3Index
| h3Index | childrenResolution | 输出 |
|---|---|---|
| 85283473fffffff | 6 | [ 862834707ffffff, 86283470fffffff, 862834717ffffff, 86283471fffffff, 862834727ffffff, 86283472fffffff, 862834737ffffff ] |
| 881F1D4887FFFFF | 9 | [ 891f1d48863ffff, 891f1d48867ffff, 891f1d4886bffff, 891f1d4886fffff, 891f1d48873ffff, 891f1d48877ffff, 891f1d4887bffff ] |
| 86be8d12fffffff | 8 | [ 88be8d1281fffff, 88be8d1283fffff, 88be8d1285fffff, 88be8d1287fffff, 88be8d1289fffff, 88be8d128bfff... |
示例 2:空值情况¶
参数值:
- 子单元分辨率:
childrenResolution - H3 索引:
h3Index
| h3Index | childrenResolution | 输出 |
|---|---|---|
| 85283473fffffff | 4 | null |
示例 3:空值情况¶
参数值:
- 子单元分辨率:
childrenResolution - H3 索引:
h3Index
| h3Index | childrenResolution | 输出 |
|---|---|---|
| 87283472bgggggg | 9 | null |
| 860800017ffffff | -1 | null |
| 860800017ffffff | 16 | null |
| null | 6 | null |
| 860800017ffffff | null | null |
示例 4:边界情况¶
参数值:
- 子单元分辨率:
childrenResolution - H3 索引:
h3Index
| h3Index | childrenResolution | 输出 |
|---|---|---|
| 8e1fb46741ae99f | 15 | [ 8f1fb46741ae998, 8f1fb46741ae999, 8f1fb46741ae99a, 8f1fb46741ae99b, 8f1fb46741ae99c, 8f1fb46741ae99d, 8f1fb46741ae99e ] |
示例 5:边界情况¶
参数值:
- 子单元分辨率:
childrenResolution - H3 索引:
h3Index
| h3Index | childrenResolution | 输出 |
|---|---|---|
| 8029fffffffffff | 0 | [ 8029fffffffffff ] |
示例 6:边界情况¶
参数值:
- 子单元分辨率:
childrenResolution - H3 索引:
h3Index
| h3Index | childrenResolution | 输出 |
|---|---|---|
| 8928308280fffff | 9 | [ 8928308280fffff ] |