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

Create H3 Grid: Resolve Polygons that outgrow the Edge of the Map #383

Open
sturmkev opened this issue Jan 10, 2025 · 1 comment
Open

Create H3 Grid: Resolve Polygons that outgrow the Edge of the Map #383

sturmkev opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@sturmkev
Copy link
Contributor

sturmkev commented Jan 10, 2025

Whenever the node is used to create hexagonal polygons and those polygons eventually outgrow the edge of the map (180°W/180°E), the single polygon gets drawn oddly. This obviously is a bigger issue the larger the hexagons are (the lower the zoom level is).
Screenshot 2025-01-10 at 15 09 58

I couldn't find any old ticket about this, even though I remember we faced this before.

However, with the node, this works fine and one can even draw a rectangle over "multiple worlds".
Screenshot 2025-01-10 at 15 08 35

Here is an example workflow to demonstrate the issue:
H3_Multipolygons.knwf.zip

Related Forum Thread:
https://forum.knime.com/t/create-h3-grid-some-issues/85299/7?u=kevin_sturm

@koettert koettert added the bug Something isn't working label Jan 21, 2025
@koettert koettert added this to the Release 1.4 milestone Jan 21, 2025
@wybert
Copy link
Contributor

wybert commented Jan 21, 2025

It could be an issue from H3-py, please also see here one of the hex indexes for this bug could be 082176ffffffffff

Two possible solutions:

  1. shift the points to another side
  2. split the polygons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants