-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
TIFF: Exception when reading region of a tiled float32 BigTIFF #746
Labels
Comments
Thanks! I'll have a look! Haven't tested with such large rasters, but in theory it should work... I'll see if I can find the issue. Update: Seems the server responds with |
Okay, seems there is a bug in the |
Thanks for your efforts on this! |
haraldk
changed the title
Exception when reading a tiled float32 BigTIFF
TIFF: Exception when reading region of a tiled float32 BigTIFF
Apr 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code fragment raises an exception with some specific files:
When the requested rectangle is inside the initial tile in the image, the result is java.lang.ArrayIndexOutOfBoundsException with the message 'Coordinate out of bounds!'. Outside the first tile (as above) the output is:
The BigTIFF file is available from this page:
https://www.data.gov.uk/dataset/8311f42d-bddd-4cd4-98a3-e543de5be4cb/lidar-composite-dtm-2019-10m
Beware: the download is 3.6Gb; the file is 15.5Gb.
On that page, there is a message about a newer version of the BigTIFF. That file has the same effect.
An observation: the number of pixels in the two files is between 2^31 and 2^32. That might cause a signed integer to become negative. No idea if that's useful.
The text was updated successfully, but these errors were encountered: