uber / h3

Hexagonal hierarchical geospatial indexing system
https://h3geo.org
Apache License 2.0
4.83k stars 459 forks source link

Has cell_to_vertex been implemented? #784

Closed Shiran-Yuan closed 11 months ago

Shiran-Yuan commented 11 months ago

Hi! I was trying to use cell_to_vertex in Python but I threw an error. The h3-py documentation didn't mention it and instead only had cell_to_boundary, which is extremely annoying due to the existence of distortion vertices. Is there are way I could use cell_to_vertex now?

Alternatively, is there a way to get all true vertexes of a cell (no distortion vertices) with the current python binding?

Thank you!

grim7reaper commented 11 months ago

Is there are way I could use cell_to_vertex now?

Seems like the issue is still open.

nrabinowitz commented 11 months ago

Closing this ticket, as it's properly an issue for h3-py, not the core H3 library. I'd question somewhat whether it's valuable to ignore the distortion vertexes, though - you'll end up with points that are outside of your 6-vertex cell but still are indexed to that cell (because they're within the distortion vertex). Note too that there are no distortion vertexes on Class II (even) resolutions, which might work if you can pick a single resolution for your use case.