Bug report #21611

QGis 3.4 fails to apply style file to rasters

Added by Luís de Sousa 9 months ago. Updated 8 months ago.

Status:Open
Priority:High
Assignee:-
Category:Symbology
Affected QGIS version:3.6.1 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29427

Description

I need have a number of .qml style files that I need to apply on raster maps. These .qml files were created with QGis itself, here is an example:
https://files.isric.org/soilgrids/legends/ORCDRC.qml

In QGis 3.4 I apply this style by accessing the layer context menu, then following Properties -> Symbology -> Style and selecting the correct .qml file. While the Properties menu is still on the map canvas shows the style correctly applied (Figure 1). But when I click OK and the Properties dialogue closes the layer disappears (F1gure 2). If I open the Properties dialogue again no style is displayed.

Any cartograms (layouts) created with this layer are also affected.

QGis_Styles02.png - Invisible raster layer (84.1 KB) Luís de Sousa, 2019-03-18 04:51 PM

QGis_Styles01.png - Applying .qml file (442 KB) Luís de Sousa, 2019-03-18 04:51 PM


Related issues

Duplicated by QGIS Application - Bug report #21880: Style file (QML) can't be used to add styles to rasters Closed 2019-04-18

History

#1 Updated by Giovanni Manghi 9 months ago

  • Priority changed from Normal to High

In 3.6 I think I see even another wrong behavour: when I load the style you linked then on the map is applied correctly, but in the styles properties dialog a wrong color ramp is applied, so when the the dialog is closed with "ok" the wrong style is also applied.

#2 Updated by Giovanni Manghi 8 months ago

  • Duplicated by Bug report #21880: Style file (QML) can't be used to add styles to rasters added

#3 Updated by Giovanni Manghi 8 months ago

  • Operating System deleted (Ubuntu 18.04)
  • Affected QGIS version changed from 3.4.5 to 3.6.1

Also available in: Atom PDF