uber / h3

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

H3 Bug - Easily Reproducible #844

Closed qemtek closed 3 months ago

qemtek commented 3 months ago

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 commented 3 months ago

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.