Feature request #5960

Add warning rule based style if feature count counts duplicate features

Added by Regis Haubourg over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Map Legend
Pull Request or Patch supplied:No Resolution:fixed
Easy fix?:No Copied to github as #:15380

Description

Related to #5768.
feature count is currently not working for ruled based styles. When solved, it would be nice to add a warning in legend diplay if a feature is counted more than once in different classes. A summary of duplicate counts would be even nicer if possible

If rules do concern overlapping datasets, graphical display DO display them in each concerned class (which is good). User should be warned of this to avoid producing bad statistics since it is easy to have overlapping queries with refine assistants.

example of : my layer has features categorised with a "size_cat" field containing 'L' and 'XL' values.
Rule 1 displays 'L': 10 features
Rule 2 displays 'L' or 'XL' : 10 + 20 features

I would like to see this something like this in legend:
My_layer
[nb of unic features : 30. Warning 20 counted in differents subclasses ]
rule 1 [10]
rule 2 [30] !

rulebased-counts.png - Solution example with duplicates detail in tooltip. (61.5 KB) Radim Blazek, 2012-10-31 10:21 AM

History

#1 Updated by Pirmin Kalberer over 11 years ago

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

#2 Updated by Radim Blazek over 11 years ago

Fixed in c4014cfab.

Because it would be problematic to show the information about duplicate feature counts in legend in a clear and clean way, the feature counts and duplicate feature counts were added into rules widget in layer properties. It is also the place where overlaps may be fixed, it would be very unfriendly to force user to apply properties to see counts and reopen again to fix duplicates.

Feature counts are calculated when "Count fatures" button is pushd. Then, if there are duplicate features, details about counts in other rules may by displayed as tooltip (mouse over) for values in column "Duplicate count".

Example snapshot is attached.

Work done by Faunalia for Agence de l'eau Adour Garonne.

#3 Updated by Radim Blazek over 11 years ago

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

Also available in: Atom PDF