[gdal-dev] gdaldem in python doesnt recognise addAlpha = True

Corina Tudorache corina_ww at yahoo.com
Wed Feb 6 07:17:03 PST 2019


Hi list,

I have been trying to use gdaldem in python to set the background color to
transparent. Unfortunately gdaldem doesnt recognise addAlpha = True, i get
this error message:
TypeError: DEMProcessingOptions() got an unexpected keyword argument
'addAlpha'

ds = gdal.DEMProcessing(infile, outfile, 'color-relief', format = 'MEM',
colorFilename = '/data/file.txt', addAlpha = True)

Is there a way to fix this behaviour?
Corina



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list