Bug report #12998

Warn users when using graduated/categorized/rule-based renderer and no rules have been specified

Added by Paolo Cavallini almost 5 years ago. Updated about 1 year ago.

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

Description

  • load a layer
  • add labelling > correct
  • go to either graduated or categorized style, and do not press the Classify button
  • the geometries disappear (not nce, but correct)
  • also the labels disappear, which I believe is unexpected.

History

#1 Updated by Martin Dobias almost 5 years ago

Only visible features are labeled, so the behavior is correct. Maybe just better to warn users when using graduated/categorized/rule-based renderer and no rules have been specified.

#2 Updated by Paolo Cavallini almost 5 years ago

  • Subject changed from Labels disappears if a style is not classified to Warn users when using graduated/categorized/rule-based renderer and no rules have been specified
  • Category changed from Labelling to Symbology

I'm a bit puzzled by this, but that's OK.
Changing the title and category of the ticket according to your suggestion.

#3 Updated by Nathan Woodrow almost 5 years ago

I think that is the correct thing to do in this case. We do really need a No Symbol render that would still allow for rendering the labels.

#4 Updated by Paolo Cavallini almost 5 years ago

This can be done with no brus - no line, but yes, its' cumbersome.

#5 Updated by Giovanni Manghi almost 3 years ago

  • Easy fix? set to No
  • Regression? set to No

#6 Updated by Paolo Cavallini about 2 years ago

  • Priority changed from Normal to Low
  • Affected QGIS version changed from 2.8.2 to 3.0.0
  • Description updated (diff)

Still true in QGIS 3. I believe users should be warned before applying an empty style.

#7 Updated by Giovanni Manghi about 1 year ago

  • Resolution set to end of life
  • Status changed from Open to Closed

#8 Updated by Giovanni Manghi about 1 year ago

  • Status changed from Closed to Open
  • Resolution deleted (end of life)

#9 Updated by Paolo Cavallini about 1 year ago

  • Affected QGIS version changed from 3.0.0 to 3.6.0
  • Status changed from Open to Reopened

Still true. The ticket was incorrectly closed, as it affected 3.0, not 2.18

#10 Updated by Giovanni Manghi about 1 year ago

  • Status changed from Reopened to Open

Also available in: Atom PDF