Bug report #17930

gdaldem does not respect output format

Added by Jan-Christoph Otto almost 3 years ago. Updated almost 3 years ago.

Status:Closed
Priority:High
Assignee:Victor Olaya
Category:Processing/GDAL
Affected QGIS version:2.18.16 Regression?:No
Operating System: Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25826

Description

I tried to calculate a slope map using a .tif as input and output.
GDAL setting automatically switch to writing a ADRG file instead of GTIF:
<gdaldem hillshade "E:/Eigene Dateien_Jan/Lehre/WS1718/GIS/Einheit_Permafrost/dgm_50.tif" "E:/Eigene Dateien_Jan/Lehre/WS1718/GIS/Einheit_Permafrost/dhm_sl.tif" -z 1.0 -s 1.0 -az 315.0 -alt 45.0 -of ADRG>
The result is an error message:
< ERROR 6: ADRG driver doesn't support 1 bands. Must be 3 (rgb) bands.
ERROR 1: Unable to create dataset E:/Eigene Dateien_Jan/Lehre/WS1718/GIS/Einheit_Permafrost/dhm_sl.tif >

Does not occur in version 2.18.11

Associated revisions

Revision 0cabbb50
Added by Alexander Bruy almost 3 years ago

[processing] pass '-of' parameter to gdaldem algorithms (fix #17930)

History

#1 Updated by Alexander Bruy almost 3 years ago

  • Operating System deleted (Win7 64)
  • Subject changed from raster calculation ADRG bug in Version 2.18.16 to gdaldem does not respect output format

#2 Updated by Alexander Bruy almost 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#3 Updated by Giovanni Manghi almost 3 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF