Changeset 13410

Show
Ignore:
Timestamp:
12/20/07 20:14:18 (5 months ago)
Author:
warmerdam
Message:

test GTiffBitmapBand - especially creation (#2115)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/autotest/gcore/tiff_write.py

    r12611 r13410  
    283283    ds = None 
    284284 
    285 #    gdaltest.tiff_drv.Delete( 'tmp/test_7.tif' ) 
     285    gdaltest.tiff_drv.Delete( 'tmp/test_7.tif' ) 
    286286 
    287287    return 'success' 
     
    354354                            options = [ 'NBITS=1', 'INTERLEAVE=BAND' ] ) 
    355355    return ut.testCreate( out_bands = 2 ) 
     356 
     357############################################################################### 
     358# Simple 1 bit file, treated through the GTiffBitmapBand class. 
     359 
     360def tiff_write_11(): 
     361 
     362    ut = gdaltest.GDALTest( 'GTiff', 'oddsize1bit.tif', 1, 5918, 
     363                            options = [ 'NBITS=1', 'COMPRESS=CCITTFAX4' ] ) 
     364    return ut.testCreateCopy() 
    356365 
    357366def tiff_write_cleanup(): 
     
    371380    tiff_write_9, 
    372381    tiff_write_10, 
     382    tiff_write_11, 
    373383    tiff_write_cleanup ] 
    374384