Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compactCells throws error #159

Closed
sup3rcow opened this issue Sep 14, 2022 · 1 comment
Closed

compactCells throws error #159

sup3rcow opened this issue Sep 14, 2022 · 1 comment

Comments

@sup3rcow
Copy link

compactCells method for this input:

compactCells(["821177fffffffff","8209a7fffffffff","821f57fffffffff","820897fffffffff","82111ffffffffff","82094ffffffffff","820727fffffffff","8208f7fffffffff","82072ffffffffff","8209affffffffff","82089ffffffffff","821127fffffffff","820957fffffffff","821f07fffffffff","820127fffffffff","821957fffffffff","8209b7fffffffff","8208a7fffffffff","821f67fffffffff","82112ffffffffff","821f0ffffffffff","82095ffffffffff","820907fffffffff","82012ffffffffff","820137fffffffff","821f6ffffffffff","821137fffffffff","8208affffffffff","821f17fffffffff","821967fffffffff","82090ffffffffff","820967fffffffff","821907fffffffff","8208b7fffffffff","821f77fffffffff","82096ffffffffff","821f1ffffffffff","82196ffffffffff","820917fffffffff","820807fffffffff","82190ffffffffff","820977fffffffff","821f27fffffffff","821977fffffffff","82091ffffffffff","8208c7fffffffff","821f2ffffffffff","820927fffffffff","820817fffffffff","821927fffffffff","8208cffffffffff","820987fffffffff","821f37fffffffff","821e27fffffffff","82092ffffffffff","82081ffffffffff","82192ffffffffff","8208d7fffffffff","820767fffffffff","82098ffffffffff","821107fffffffff","820107fffffffff","820937fffffffff","820827fffffffff","821937fffffffff","8208dffffffffff","821167fffffffff","820997fffffffff","821f47fffffffff","820887fffffffff","82110ffffffffff","82082ffffffffff","820777fffffffff","8208e7fffffffff","82099ffffffffff","82088ffffffffff","821117fffffffff","820947fffffffff","820837fffffffff","821947fffffffff","8208effffffffff"])

Produce:

Resolution argument was outside of acceptable range (code: 4)

h3-js v3.7.2, for same input produce this result:

['821177fffffffff', '821f57fffffffff', '820727fffffffff', '82072ffffffffff', '820127fffffffff', '821957fffffffff', '821f67fffffffff', '82012ffffffffff', '820137fffffffff', '821f6ffffffffff', '821967fffffffff', '821907fffffffff', '821f77fffffffff', '82196ffffffffff', '82190ffffffffff', '821977fffffffff', '821927fffffffff', '821e27fffffffff', '82192ffffffffff', '820767fffffffff', '820107fffffffff', '821937fffffffff', '821167fffffffff', '821f47fffffffff', '820777fffffffff', '821947fffffffff', '811f3ffffffffff', '81113ffffffffff', '8009fffffffffff']
@nrabinowitz
Copy link
Collaborator

Thanks for reporting! This issue has been fixed in the H3 core library, but a version with the fix has not yet been released. We will update h3-js as soon as the release is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants