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_int_to_string and h3_string_to_int are not reflexive #23

Open
ysugk opened this issue Apr 21, 2022 · 3 comments
Open

h3_int_to_string and h3_string_to_int are not reflexive #23

ysugk opened this issue Apr 21, 2022 · 3 comments

Comments

@ysugk
Copy link

ysugk commented Apr 21, 2022

Hi,

The output of placekey::h3_int_to_string(placekey::h3_string_to_int("8a283082a677fff")) is 8a283082a678000.
I expected to have 8a283082a677fff. Am I missing something?

@ysugk ysugk changed the title h3_int_to_string and h3_string_to_int is not recursive h3_int_to_string and h3_string_to_int are not recursive Apr 21, 2022
@JosiahParry
Copy link
Owner

What do you mean by recursive?

I'm using the h3 C library to make this transposition. Could this be an issue with the C library? I haven't poked around here for a while.

String h3_int_to_string(uint64_t index) {

@ysugk ysugk changed the title h3_int_to_string and h3_string_to_int are not recursive h3_int_to_string and h3_string_to_int are not reflexive Apr 21, 2022
@ysugk
Copy link
Author

ysugk commented Apr 21, 2022

I think I should say, "reflexive" instead of recursive. I see, then I think this could be an issue with the C library.

@JosiahParry
Copy link
Owner

I recommend using https://github.com/obrl-soil/h3jsr for h3 at this moment

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