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

H3 Bug - Easily Reproducible #844

Closed
qemtek opened this issue May 31, 2024 · 1 comment
Closed

H3 Bug - Easily Reproducible #844

qemtek opened this issue May 31, 2024 · 1 comment

Comments

@qemtek
Copy link

qemtek commented May 31, 2024

import h3

hex1 = '877b9db55ffffff'

hex1_geo = h3.h3_to_geo(hex1)

hex2 = h3.geo_to_h3(lat=hex1_geo[1], lng=hex1_geo[0], resolution=h3.h3_get_resolution(hex1))

assert hex1 == hex2

Hi, in my example, hex1 should equal hex2, but they are different. This is an obvious bug right?

@dfellis
Copy link
Collaborator

dfellis commented May 31, 2024

This is python code, so I answered your duplicate issue in the h3-py binding repo. Lat, Lng ordering is flipped in your example code.

@qemtek qemtek closed this as completed May 31, 2024
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