Feature request #2182

Selective display of categorised layer

Added by mesajs - over 7 years ago. Updated over 1 year ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:Map Canvas
Target version:Future Release - Nice to have
Platform:All Resolution:fixed/implemented
Platform version: Pull Request or Patch supplied:No
Status info:0 Tag:

Description

When symbology for a vector layer is set to 'Unique value', could a check box be added beside each classification in the legend to turn on/off rendering of classifications (and associated labels).

Eg If a classification field has values 'Small', 'Medium' and 'Large', the user could uncheck 'Small' and only 'Medium' and 'Large' objects would be displayed.

Ideally, only the selected classifications would appear in map legends on Map Composer and Quick Print.

History

Updated by Giovanni Manghi over 7 years ago

But there is a "delete classes" button, isn't that enough?

Updated by mesajs - over 7 years ago

Delete classes certainly stops a class displaying, but displaying it again requires setting up the symbology for that class all over again. This can be a problem for less sophisticated users.

I was thinking of making it as easy as turning whole layers on and off.

Tony

Updated by Matt Sim over 5 years ago

<bump> Feeling pretty lonely about it, but i would love this capability.

I work on route planning studies, and this feature would be amazing for comparing scenarios, dynamic feature priority filters... and just plain reducing visual clutter when focusing on one issue. At present i do one of the following (all of which would be solved by this one feature):
- use the Split layer plugin, but then i'm duplicating data
- load the layer multiple times with sql filtering, but then edits and such are disabled
- if its PostGIS, i could make views with edit rules/triggers, but the response time on large views defeats the idea of "strobe" or "toggle-style" comparisons, and feels like too much work just for something that arises on-the-fly (there's no way i'm triggering all tables, but i've know way of knowing beforehand which ones would need it).

hoping others agree,
matt

Updated by Giovanni Manghi over 5 years ago

  • Assigned to deleted (nobody -)
  • Pull Request or Patch supplied set to No

Matt Sim wrote:

<bump> Feeling pretty lonely about it, but i would love this capability.

I work on route planning studies, and this feature would be amazing for comparing scenarios, dynamic feature priority filters... and just plain reducing visual clutter when focusing on one issue. At present i do one of the following (all of which would be solved by this one feature): - use the Split layer plugin, but then i'm duplicating data - load the layer multiple times with sql filtering, but then edits and such are disabled - if its PostGIS, i could make views with edit rules/triggers, but the response time on large views defeats the idea of "strobe" or "toggle-style" comparisons, and feels like too much work just for something that arises on-the-fly (there's no way i'm triggering all tables, but i've know way of knowing beforehand which ones would need it).

hoping others agree, matt

are you sure you can't achieve what you need with the "rule based renderer"?

Updated by Nathan Woodrow over 5 years ago

+1 to adding this as a feature.

Being able to turn on and off symbols in a style for a layer would be handy.

Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by Mayeul Kauffmann about 5 years ago

"are you sure you can't achieve what you need with the "rule based renderer" ?"

The workaround I use is:
To turn a rule always off:
1=0 and (rule)

To turn a rule always on:
1=1 or (rule)

Updated by Matt Sim about 5 years ago

This feature, as I imagine it, would be in addition to Rules. (or categories, or any symbology that results in more than one class.)
When a layer is expanded, the symbology for each class is shown. What I propose is the addition of a checkbox beside each class.

Perhaps this capability could be turned on from the Layer properties dialog. I imagine a combo box titled "Add Class display controls" with three options: none, checkboxes, radio buttons. "None" would be the default/current behavior.

Here is an example of how I would use it:
I have two postgis tables, highway_alternatives, and terrestial_constraints.
With the addition of this feature, I would load each table only once, and immediately be able to make comparisons by applying the radio button control to highway_alternatives, and checkboxes to terrestrial_constraints. It's quick, relevant, and intuitive.

Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Nyall Dawson over 1 year ago

  • Status changed from Open to Closed
  • Resolution set to fixed/implemented

Implemented for a few versions now

Also available in: Atom