On mercredi 6 février 2019 08:17:03 CET Corina Tudorache wrote: > 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?
This was added in GDAL 2.3.0 As a workaround you can use the options= keyword and format its value with what you would put on the gdaldem command line Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
