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

polygonToCells fails on a rectangular polygon #138

Open
jogoussard opened this issue Oct 24, 2023 · 0 comments
Open

polygonToCells fails on a rectangular polygon #138

jogoussard opened this issue Oct 24, 2023 · 0 comments

Comments

@jogoussard
Copy link

Hi
Given this rectangular polygon

POLYGON((11.147991 64.75815699999998,11.443969 64.75815699999998,11.443969 64.845147,11.147991 64.845147,11.147991 64.75815699999998))

the polygonToCells call fails with

com.uber.h3core.exceptions.H3Exception: The operation failed but a more specific error is not available

Test program to reproduce:

    var coords = List.of(
        new LatLng(64.758157,11.147991),
        new LatLng(64.758157,11.443969),
        new LatLng(64.845147,11.443969),
        new LatLng(64.845147,11.147991),
        new LatLng(64.758157,11.147991));

    H3Core.newInstance().polygonToCells(coords, List.of(), 10);

The ''same'' polygon shifted at latitudes of 63 degrees works without issue.

Library version: com.uber:h3:4.1.1
OS: Mac Os Ventura 13.5
Processor: 2.6 GHz 6-Core Intel Core i7
Memory: 32GB

Any potential fix/workaround suggestion?
Thanks a lot

grim7reaper added a commit to HydroniumLabs/h3o that referenced this issue May 11, 2024
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

1 participant