H3_INVALID_CELL_ID error class
<h3Cell>
is not a valid H3 cell ID
Parameters
- h3Cell: An input value that doesn’t correspond to a valid H3 cell ID.
Explanation
Functions that return this error have either encountered an input value that doesn’t correspond to a valid cell ID or is outside the acceptable range for valid H3 cell IDs. The minimum value of this range is 0x08001fffffffffff
and the maximum value is 0x08ff3b6db6db6db6
. Values within this range may still correspond to invalid H3 cell IDs.
Mitigation
Check that the offending H3 cell ID is valid. If the ID is invalid, filter it out by using the h3_isvalid SQL function.
Examples
SQL
-- Invalid cell ID as input to the h3_resolution function.
> SELECT h3_resolution(0)
[H3_INVALID_CELL_ID] 0 is not a valid H3 cell ID
Functions emitting the error class
h3_boundaryasgeojson
functionh3_boundaryaswkb
functionh3_boundaryaswkt
functionh3_centerasgeojson
functionh3_centeraswkb
functionh3_centeraswkt
functionh3_compact
functionh3_distance
functionh3_h3tostring
functionh3_hexring
functionh3_ischildof
functionh3_ispentagon
functionh3_kring
functionh3_kringdistances
functionh3_maxchild
functionh3_minchild
functionh3_resolution
functionh3_stringtoh3
functionh3_tochildren
functionh3_toparent
functionh3_try_distance
functionh3_uncompact
functionh3_validate
function