Bug report #21880

Style file (QML) can't be used to add styles to rasters

Added by Josin Tharian almost 5 years ago. Updated almost 5 years ago.

Affected QGIS version:3.6.1 Regression?:No
Operating System:Windows 10 Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:29695


When styling raster files using QML file through 'Load style' button in Symbology panel, after clicking OK or Apply button, a default style gets applied and QML file is discarded.

Loading Style from QML file

After clicking the apply button

The only work around is to rename the style file to the same name as raster and place it in same folder. Still if you click ok or Apply button in symbology panel, the style changes to a default one.

Related issues

Duplicates QGIS Application - Bug report #21611: QGis 3.4 fails to apply style file to rasters Open 2019-03-18


#1 Updated by Giovanni Manghi almost 5 years ago

#2 Updated by Giovanni Manghi almost 5 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

Also available in: Atom PDF