You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
When passing a world polygon (lat -90 to 90, long -180 to 180), the method polyfill_polygon returns just half of the expected results according to the resolution table.
It seems an issue with the longitude interpretation. If the bounding box is split in two (long -180 to 0 and 0 to 180) and the result is combined it works fine.
This is currently expected behavior, but now that I look at the docs it's not well documented :/. The polyfill algo currently does not require a particular winding order, and as a result we can only take arcs < 180 degrees in length. Splitting into two boxes and filling both is the current suggested workaround.
If you just want the whole world, I think you'd be better off performance-wise with h3.get_res0_indexes and then using h3.uncompact to get the desired resolution.
Hello there,
When passing a world polygon (lat -90 to 90, long -180 to 180), the method polyfill_polygon returns just half of the expected results according to the resolution table.
Prints: 61
It seems an issue with the longitude interpretation. If the bounding box is split in two (long -180 to 0 and 0 to 180) and the result is combined it works fine.
The text was updated successfully, but these errors were encountered: