Bug report #21611
QGis 3.4 fails to apply style file to rasters
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.
Related issues
History
#1 Updated by Giovanni Manghi over 5 years 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 over 5 years ago
- Duplicated by Bug report #21880: Style file (QML) can't be used to add styles to rasters added
#3 Updated by Giovanni Manghi over 5 years ago
- Operating System deleted (
Ubuntu 18.04) - Affected QGIS version changed from 3.4.5 to 3.6.1