Changeset 14479

Show
Ignore:
Timestamp:
05/16/08 16:34:36 (2 months ago)
Author:
rouault
Message:

Add and adapt test for AAIGRID (#2369)

Files:

Legend:

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

    r14341 r14479  
    149149 
    150150############################################################################### 
     151# Verify data type determination from type of nodata  
     152 
     153def aaigrid_6bis(): 
     154 
     155    ds = gdal.Open( 'data/nodata_int.asc' ) 
     156 
     157    b = ds.GetRasterBand(1) 
     158    if b.GetNoDataValue() != -99999: 
     159        gdaltest.post_reason( 'Grid NODATA value wrong or missing.' ) 
     160        return 'fail' 
     161 
     162    if b.DataType != gdal.GDT_Int32: 
     163        gdaltest.post_reason( 'Data type is not Int32!' ) 
     164        return 'fail' 
     165 
     166    return 'success' 
     167 
     168############################################################################### 
    151169# Verify writing files with non-square pixels. 
    152170 
     
    176194    aaigrid_5, 
    177195    aaigrid_6, 
     196    aaigrid_6bis, 
    178197    aaigrid_7, 
    179198    aaigrid_8 ] 
  • trunk/autotest/gdrivers/data/nodata_float.asc

    r13433 r14479  
    44yllcorner    3750120.000000000000 
    55cellsize     60.000000000000 
    6 nodata_value -99999 
     6nodata_value -99999. 
    77    107    123    132    115    132 
    88    115    132    107    123    148