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

Fix reading geoTiff #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix reading geoTiff #12

wants to merge 1 commit into from

Conversation

jansule
Copy link

@jansule jansule commented Aug 9, 2019

When reading geoTiff all grid values were set to 0.0 due to commenting out relevant code.

More specifically: band.ReadRaster() sets the values for the double array line. When not calling the function, line will only be an array of 0.0 and its values will be added to the grid, ignoring the actual values of the rasterband.

This code was commented out 9 years ago in d7a6442. I am not sure if this fix will have side effects on that commit.

When reading geoTiff all grid values were set to 0.0 due to commenting out relevant code.

More specifically: `band.ReadRaster()` sets the values for the double array `line`. Otherwise line will only be an array of `0.0` and its values will be added to the grid, ignoring the actual values of the rasterband.

This code was commented out 9 years ago in eclab@d7a6442. I am not sure if this fix will have side effects on that commit.
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.

1 participant