Bug report #21611
QGis 3.4 fails to apply style file to rasters
|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|
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:
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.
#1 Updated by Giovanni Manghi about 1 year 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.