Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test for #5451

git-svn-id: https://svn.osgeo.org/gdal/trunk@27457 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information...
commit 1106e43682056645c8c5e0dbf6ebcb69f8bf23cc 1 parent 0a66b6f
@rouault rouault authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 autotest/gcore/rat.py
View
13 autotest/gcore/rat.py
@@ -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__':
Please sign in to comment.
Something went wrong with that request. Please try again.