Changeset 15070

Show
Ignore:
Timestamp:
07/29/08 11:22:30 (4 months ago)
Author:
warmerdam
Message:

Added test of .aux sourced nodata (#2505)

Files:

Legend:

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

    r14904 r15070  
    183183 
    184184############################################################################### 
     185# Verify we can read nodata values from .aux files (#2505) 
     186# 
     187def pam_6(): 
     188 
     189    ds = gdal.Open( 'data/f2r23.tif' ) 
     190    if ds.GetRasterBand(1).GetNoDataValue() != 0: 
     191        gdaltest.post_reason( 'did not get expect .aux sourced nodata.' ) 
     192        return 'fail' 
     193    ds = None 
     194 
     195    return 'success' 
     196 
     197############################################################################### 
    185198# Cleanup. 
    186199 
     
    199212    pam_4, 
    200213    pam_5, 
     214    pam_6, 
    201215    pam_cleanup ] 
    202216