Open rfreeman853 opened 1 year ago
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 500 Internal Server Error
at the moment. I'll come by later...
Okay, seems there is a bug in the clipRowToRect
method in relation to a combination of source region and tiles... I'll find a fix.
Thanks for your efforts on this!
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.