NITF driver does not handle images where the raster size does not match the subimage size
|Reported by:||kuhnboy||Owned by:||warmerdam|
I have an image where NPPBH * NBPR = the JPEG subimage raster width and NPPBV * NBPC = the JPEG subimage raster height.
NCOLS is less than the size of NPPBV * NBPC (therefore it is less than the size of the JPEG subimage raster height). GDAL fails to process the image due to NCOLS not matching the raster height of the JPEG subimage.
But, the NITF spec says this is valid.
Per NITF Spec (http://www.gwg.nga.mil/ntb/baseline/docs/2500b/2500b.pdf):
NROWS: This field shall contain the total number of rows of significant pixels in the image. When NPPBV * NBPC > NROWS, the remaining last rows (NPPBV * NBPC - NROWS) shall contain fill data (that is, only the rows indexed 0 through NROWS -1 of the image contain "significant" data). The pixel fill values are determined by the application.
NCOLS: This field shall contain the total number of columns of significant pixels in the image. When NPPBH * NBPR > NCOLS, the remaining last pixels of each column (NPPBH * NBPR - NCOLS) shall contain fill data (that is, only the columns indexed 0 through NCOLS -1 of the image contain "significant" data). The pixel fill values are determined by the application.