Bug report #10179
categorized style broken
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18633|
With the latest master (70225a3) categorized style can't be used. QGIS let you choose a field(s) for feature symbolization, but, after pressing apply button on layer properties field, the chosen field or expression selected on "Column" box disappears and no polygon is drawn in canvas. projects saved with older version for layers rendered as categorized work fine until you open properties layer.
To reproduce this bug add a vector layer to QGIS, choose categorized layer rendering, choose a layer for rendering and press apply or ok. No feature is represented on view.
#1 Updated by Giovanni Manghi over 6 years ago
- Status changed from Open to Feedback
- Operating System deleted (
- OS version deleted (
win 7 64bit)
- Affected QGIS version changed from 2.2.0 to master
There is a known issue with styling in master
but I'm not sure about the one you reported.
With the "categorized" rendering is is always necessary to click on "classify" to create the synmbology classes based on the chosen column. This differ from the "graduated" one that creates the classes on th fly, after choosing the column and/or the number of classes.
Does make sense?
#2 Updated by Anita Graser over 6 years ago
I can confirm this issue. It has nothing to do with whether it is necessary to press classify or not. Categorized styles are just broken. Everything looks fine in layer properties until I hit apply. Then the classification column is deleted from the dropdown list/combobox and the features are not rendered in the styles of their category.
#4 Updated by Angus Carr over 6 years ago
#10163 is also consistent with this report. The dialog shown in that report shows an empty "Column" combobox in the dialog, but has classified symbology in the box below. In both discussions, it seems that the user behaviour was correct, to click classify first then apply or ok.
I observe the same program behaviour, even though the same steps work fine in Valmiera (2.2.0).
For that matter, I can apply labels, but when I hit ok, they disappear. I suspect they are related behaviours.
#5 Updated by Simon Dedman over 6 years ago
I just posted this to gis.stackexchange and ndawson told me about the bug. I've already created an imgur album detailing the bug which may or may not be of interest to some. I figured i've already done it so I might as well share it!
Image sequence: 1: version. 2: appearance when opened fresh. Looks fine. 3: details of that layer: 25 equal counts on the first data layer. 4: changed to pretty breaks and hit apply - layer disappears in background, data field now blank. 5: but no blank data field present.