2

I have applied a point clustering effect on a layer in QGIS. What I'd like to be able to do is cluster on all features except the ones that I have a NULL value in an attribute. I can Categorize on feature when zoomed in using the rendered Settings, but there doesn't seem to be an option for categorizing data when clustered.

1

Actually, the cluster renderer does support categorized styles.

Next to the word Renderer there's a dropdown menu, where you can choose Categorized.

enter image description here

Under the Renderer type selection menu, click the button Rendering Settings... to access the normal layer style panel settings for a Categorized style.

enter image description here

Categorize by the field that has values. Un-check the category. Now the points with values won't be displayed or included in any point clusters.


Here's a workaround I wrote up before I realized that the cluster renderer supports categorized styles:

Apply a Filter to the layer.

Here's a point layer with a 20 mm cluster distance:

enter image description here

Apply a filter "field" is not null"

enter image description here

Now the points with values in the field are excluded from the point clusters:

enter image description here

  • this doesn't categorize the Null feature, it just doesn't show or count it in the cluster. I did mention this rendered settings in my question, and that wasn't the solution. There would need to be a categorize option on both the rendered and the point cluster basically. Where the cluster symbol is categorized and the renderer symbol is catgorized. – B-C B. Jul 30 at 19:07
  • 1
    the cluster renderer doesn't do that. you'll need to put the null features in a separate layer if you want them displayed separately. – csk Jul 30 at 19:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.