Ticket #4322 (new defect)
Tile size in NITF header needs to match tile size in JPEG2000 codestream
|Reported by:||jeepingben||Owned by:||warmerdam|
When writing a NTIF using JPEG2000 compression, the tile size stored in the NITF header (NPBBH and NPPBV) need to match the tile size used in the JPEG2000 codestream (passed using :
BLOCKXSIZE and BLOCKYSIZE in JP2KAK driver TILE_WIDTH and TILE_HEIGHT for JP2ECW driver <tilesize> %d %d </tilesize> for JP2MrSID driver BLOCKXSIZE and BLOCKYSIZE for JP2OpenJPEG driver)
The default sizes are large (at least in the JP2KAK driver), X is 20000 and y is the image height. NBPPH only has 4 digits, so it can't exceed 9999 (I saw 8192 as a limit in the NITF documentation), so the codestream tiling should be adjusted rather than adjusting NPPBH and NPPBV.