In case of tile having a T6 compression, the generation of temporary TIFF file could lead to an ArrayIndexOutOfBoundsException.
This commit fixes the TIFF file generation in case the given nCellsInLineDirectionis higher than the (amount of lines * nCellsPerTileInLineDirection), by always computing the amount of cells for last row of tiles.
In case of tile having a T6 compression, the generation of temporary TIFF file could lead to an
ArrayIndexOutOfBoundsException
. This commit fixes the TIFF file generation in case the givennCellsInLineDirection
is higher than the (amount of lines *nCellsPerTileInLineDirection
), by always computing the amount of cells for last row of tiles.