Feature request #565

Do not render features or their labels if their classification value doesn't match a symbol's lower/upper range.

Added by billy-silverbaseball-com - over 17 years ago. Updated almost 15 years ago.

Assignee:Marco Hugentobler
Pull Request or Patch supplied: Resolution:fixed
Easy fix?:No Copied to github as #:10624


QgsVectorLayer calls the renderer to have it determine the pen, brush and/or marker to use to draw the feature. The Gradient renderer checks to see if the value falls in the certain value range and returns no pen and no brush, but returns a marker. This makes the symbol render using the default marker. Added a boolean function that sees if the feature falls in the range of any symbol. If not, bypass any drawFeature or drawLabel call for that feature.

The common code that gets the first symbol that the feature's value falls in I moved to a private function.

ranged_gradient_render.diff Magnifier (6.32 KB) billy-silverbaseball-com -, 2007-02-01 12:44 PM


#1 Updated by Marco Hugentobler over 17 years ago

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

Thank you for this patch. I applied it to svn (). I will also make similar changes to svn head where this change is also important for the unique value renderer (because in head it is possible to remove values from unique value renderers).


#2 Updated by Anonymous almost 15 years ago

Milestone Version 0.8 deleted

Also available in: Atom PDF