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

h3ToGeoBoundary sometimes returns octagon #117

Closed
usuallycwdillon opened this issue Aug 7, 2018 · 2 comments
Closed

h3ToGeoBoundary sometimes returns octagon #117

usuallycwdillon opened this issue Aug 7, 2018 · 2 comments

Comments

@usuallycwdillon
Copy link

While trying to track down some unexpected behavior from making shapefiles from polyfill objects, I came across an octagon at address '83a350fffffffff'. The error came up while making shapefiles in h3-java, but after finding the same result in h3-python, I compiled today's version of H3 core, and found it there, too.

@isaacbrodsky
Copy link
Collaborator

Hi,

I believe this is correct behavior. h3ToGeoBoundary introduces additional vertices if vertices of a cell lie on different icosahedron faces due to projection distortion, which is the case here. This happens in Class III resolutions, which are the odd numbered resolutions. In the extreme case, an H3 cell can have up to 10 vertices.

The cell still has 6 neighboring cells (or 5 for the pentagons at the icosahedron vertices) but has a more complicated edge.

@usuallycwdillon
Copy link
Author

Ah. I had read that but hadn't groked it. Thank you.

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

2 participants