Opened 14 years ago

Closed 9 years ago

#3290 closed defect (fixed)

JP2KAK Driver Missing Palette for file9_jp2_2places.ntf

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: NITF JP2KAK
Cc: Even Rouault

Description

from autotest/gdrivers/nitf.py:

  TEST: nitf_online_16_jp2kak ... Deregistering JP2ECW
1
47664
None
Registering JP2ECW
fail
    Did not get expected checksums

The problem seems to be that the palette is not being picked up as we see in the gdalinfo --checksum output:

...
  NITF_CCS_COLUMN=0
  NITF_IMAG=1.0 
Image Structure Metadata:
  COMPRESSION=JPEG2000
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  512.0)
Upper Right (  768.0,    0.0)
Lower Right (  768.0,  512.0)
Center      (  384.0,  256.0)
Band 1 Block=768x128 Type=Byte, ColorInterp=Palette
  Checksum=47664
  Overviews: 384x256, 192x128, 96x64
  Overviews checksum: 29884, 25246, 6222
  Image Structure Metadata:
    COMPRESSION=JP2000

Change History (2)

comment:1 by Jukka Rahkonen, 9 years ago

The test is still in the autotest suite as

# Test opening a IC=C8 NITF file which has 256-entry palette/LUT in both JP2 Header and image Subheader
# We expect RGB expansion from some JPEG2000 driver

def nitf_online_16(driver_to_test):

I hope that there has been a fix (perhaps in r27260) to JP2KAK and the test does not fail any more.

comment:2 by Even Rouault, 9 years ago

Milestone: 1.8.1
Resolution: fixed
Status: newclosed

Should indeed be fixed by r27260.

Note: See TracTickets for help on using tickets.