Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Calculates the H3 cell resolution.
Read more about H3 Cell.
Syntax
geo_h3cell_level(h3cell)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| h3cell | string |
✔️ | An H3 Cell token value as it was calculated by geo_point_to_h3cell(). |
Returns
An integer that represents H3 Cell level. Valid level is in range [0, 15]. If the H3 Cell is invalid, the query will produce a null result.
Examples
The following example calculates the H3 cell resolution.
print cell_res = geo_h3cell_level('862a1072fffffff')
Output
| cell_res |
|---|
| 6 |
print cell_res = geo_h3cell_level(geo_point_to_h3cell(1,1,10))
Output
| cell_res |
|---|
| 10 |
The following example returns true because of the invalid H3 Cell token input.
print invalid_res = isnull(geo_h3cell_level('abc'))
Output
| invalid_res |
|---|
| 1 |