You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The H3 Go function h3.ToGeo(h3.Index) returns a value which is out by 360 degrees compared to the Python implementation. An example illustrates the point below.
This seems inconsistent - While I understand the type of the address changes between Python(String) and GoLang(uint64) for good reasons. The value of the ToGeo functions varies by 360 exactly. This isn't a difficult fix within a system but I don't understand the inconsistency.
The text was updated successfully, but these errors were encountered:
I expect you'll find the python bindings are using a more up-to-date h3 core than the Go bindings are. Specifically, geo output constrained to [-Pi, Pi] was added in release v3.1.1 but the Go bindings are using v3.0.8 at the moment. I'm adding a badge to the README in #8 to make it more clear which h3 version is being wrapped 😄
I will create an issue to track pulling in more recent h3 core versions but I need to first address the gap this binding currently has with 3.0.* ☹️
(if you find I'm wrong feel free to re-open with the versions of each library you're using to reproduce the issue)
The H3 Go function
h3.ToGeo(h3.Index)
returns a value which is out by 360 degrees compared to the Python implementation. An example illustrates the point below.Python functions return the following:
Go Lang functions return the following:
-0.08106823052469281
359.9189317694753
This seems inconsistent - While I understand the type of the address changes between Python(
String
) and GoLang(uint64
) for good reasons. The value of theToGeo
functions varies by 360 exactly. This isn't a difficult fix within a system but I don't understand the inconsistency.The text was updated successfully, but these errors were encountered: