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

Update rasterband_pixels.cpp #292

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jaredly
Copy link

@jaredly jaredly commented Jun 4, 2022

the n*4 makes it seem like we're reading RGBA for each pixel, but experimentally band.pixels.read(0,0,16,16) only uses 256 slots in the data buffer; only one elevation reading per pixel.

oh it's 4 bytes per float

the `n*4` makes it seem like we're reading RGBA for each pixel, but experimentally `band.pixels.read(0,0,16,16)` only uses 256 slots in the data buffer; only one elevation reading per pixel.
make it clear what the `4` constant is about
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

Successfully merging this pull request may close these issues.

None yet

1 participant