H3_INVALID_RESOLUTION_VALUE error class
H3 resolution <r> must be between <minR> and <maxR>, inclusive
Parameters
- h3Cell: An input value that was expected to correspond to a valid H3 cell ID.
- r: The actual resolution value (an INTEGER), passed to the SQL function.
- minR: The minimum acceptable resolution (an INTEGER) in the context of the SQL function (usually 0).
- maxR: The maximum acceptable resolution (an INTEGER) in the context of the SQL function (usually 15).
Explanation
Functions that emit this error expect a valid H3 resolution value. Valid H3 resolution values are between 0 and 15. Some SQL functions may restrict the range even further based on the function's context.
Examples
SQL
-- Invoking h3_longlatash3 with a resolution that is out of the valid range.
> SELECT h3_longlatash3(40, -120, 16);
  [H3_INVALID_RESOLUTION_VALUE] H3 resolution 16 must be between 0 and 15, inclusive
-- Invoking h3_toparent with a resolution that is larger than the input cell's resolution.
> SELECT h3_toparent(599686042433355775, h3_resolution(599686042433355775) + 1);
  [H3_INVALID_RESOLUTION_VALUE] H3 resolution 6 must be between 0 and 5, inclusive
Functions emitting this error class
- h3_coverash3function
- h3_coverash3stringfunction
- h3_longlatash3function
- h3_longlatash3stringfunction
- h3_maxchildfunction
- h3_minchildfunction
- h3_pointash3function
- h3_pointash3stringfunction
- h3_polyfillash3function
- h3_polyfillash3stringfunction
- h3_tessellateaswkbfunction
- h3_tochildrenfunction
- h3_toparentfunction
- h3_try_coverash3function
- h3_try_coverash3stringfunction
- h3_try_tessellateaswkbfunction
- h3_uncompactfunction