You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Using reader: com.twelvemonkeys.imageio.plugins.tiff.TIFFImageReader@76ccd017
width, height: 58000, 66500
sourceRegion: java.awt.Rectangle[x=256,y=256,width=2,height=2]
Exception:
java.awt.image.RasterFormatException: (parentX + width) is outside raster
at java.desktop/java.awt.image.Raster.createChild(Raster.java:1526)
at com.twelvemonkeys.imageio.plugins.tiff.TIFFImageReader.clipRowToRect(TIFFImageReader.java:1909)
at com.twelvemonkeys.imageio.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1094)
at smallest_test.main(smallest_test.java:58)
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:
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: