Changeset 14424

Show
Ignore:
Timestamp:
05/10/08 11:07:12 (3 months ago)
Author:
rouault
Message:

Add test for additionnal fix for handling 1-bit uncompressed NITF images with NITF_IC=NM (#1854)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/autotest/gdrivers/nitf.py

    r13839 r14424  
    236236def nitf_11(): 
    237237 
     238    # From http://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/i_3034c.ntf 
    238239    tst = gdaltest.GDALTest( 'NITF', 'i_3034c.ntf', 1, 170 ) 
    239240    return tst.testOpen() 
     
    321322 
    322323    return tst.testCreateCopy( vsimem = 1 ) 
     324 
     325############################################################################### 
     326# Checks a 1-bit mono with mask table having (0x00) black as transparent with white arrow. 
     327 
     328def nitf_16(): 
     329 
     330    # From http://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/ns3034d.nsf 
     331    tst = gdaltest.GDALTest( 'NITF', 'ns3034d.nsf', 1, 170 ) 
     332    return tst.testOpen() 
     333 
     334 
     335############################################################################### 
     336# Checks a 1-bit RGB/LUT (green arrow) with a mask table (pad pixels having value of 0x00) 
     337# and a transparent pixel value of 1 being mapped to green by the LUT 
     338 
     339def nitf_17(): 
     340 
     341    # From http://www.gwg.nga.mil/ntb/baseline/software/testfile/Nitfv2_1/i_3034f.ntf 
     342    tst = gdaltest.GDALTest( 'NITF', 'i_3034f.ntf', 1, 170 ) 
     343    return tst.testOpen() 
    323344 
    324345############################################################################### 
     
    359380    nitf_14, 
    360381    nitf_15, 
     382    nitf_16, 
     383    nitf_17, 
    361384    nitf_cleanup ] 
    362385