Skip to content

Commit

Permalink
Add test for #5451
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@27457 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
rouault committed Jun 15, 2014
1 parent 0a66b6f commit 1106e43
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions autotest/gcore/rat.py
Expand Up @@ -159,11 +159,24 @@ def rat_2():

return 'success'

###############################################################################
# Save an empty RAT (#5451)

def rat_3():

ds = gdal.GetDriverByName('GTiff').Create('/vsimem/rat_3.tif', 1, 1 )
ds.GetRasterBand(1).SetDefaultRAT( gdal.RasterAttributeTable() )
ds = None

gdal.GetDriverByName('GTiff').Delete( '/vsimem/rat_3.tif' )

return 'success'
##############################################################################

gdaltest_list = [
rat_1,
rat_2,
rat_3,
None ]

if __name__ == '__main__':
Expand Down

0 comments on commit 1106e43

Please sign in to comment.