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

Check z encoding #5

Open
kylebarron opened this issue Apr 18, 2020 · 1 comment
Open

Check z encoding #5

kylebarron opened this issue Apr 18, 2020 · 1 comment

Comments

@kylebarron
Copy link
Owner

What is the range of z values in the source file?

# https://github.com/tilezen/joerd/blob/0b86765156d0612d837548c2cf70376c43b3405c/joerd/output/normal.py#L176-L179
# Note that because of rounding necessary to encode as 8-bit ints, the
# unscaled vector lengths don't add up exactly to 1
unscaled_z = (arr[:, :, 2] / 128) - 1

image

@kylebarron
Copy link
Owner Author

Although I guess that looks right?

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

1 participant