Classe de erro H3_INVALID_RESOLUTION_VALUE
A resolução H3 <r>
deve estar entre <minR>
e <maxR>
, inclusive
Parâmetros
- H3cell : um valor de entrada que deveria corresponder a um ID de célula H3 válido.
- r : O valor real da resolução (um INTEGER), passado para a função SQL.
- minR : A resolução mínima aceitável (um INTEGER) no contexto da função SQL (geralmente
0
). - maxR : A resolução máxima aceitável (um INTEGER) no contexto da função SQL (geralmente
15
).
Explicação
As funções que emitem esse erro esperam um valor de resolução H3 válido. Os valores de resolução H3 válidos estão entre 0
e 15
. Algumas funções SQL podem restringir ainda mais o intervalo com base no contexto da função.
Exemplos
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
Funções que emitem essa classe de erro
h3_coverash3
funçãoh3_coverash3string
funçãoh3_longlatash3
funçãoh3_longlatash3string
funçãoh3_maxchild
funçãoh3_minchild
funçãoh3_pointash3
funçãoh3_pointash3string
funçãoh3_polyfillash3
funçãoh3_polyfillash3string
funçãoh3_tessellateaswkb
funçãoh3_tochildren
funçãoh3_toparent
funçãoh3_uncompact
função