-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Description
import h3
def logical_poly(cell, res):
"""
Return the polygon representing the geometric area covered
by the children of `cell` at resolution `res`.
Expectation: A single polygon with one outer loop and no holes.
Currently: Getting multipolygons with holes (seems like a bug), or just errors for malformed polygons.
"""
kids = h3.cell_to_children(cell, res)
mpoly = h3.cells_to_h3shape(kids, tight=False)
return mpoly
Demonstrated here: https://gist.github.com/ajfriend/dc33458c7cc0e0be88fbc8cee205ce6f
- Generally, we only see the problem of getting multipolygons with odd resolutions.
- However, we also get errors on res 2 and 7 from malformed polygons.
Metadata
Metadata
Assignees
Labels
No labels