2

I am trying to categorize a polygon layer with several buildings, by the number of floors.

I want to aggregate by classes like this way:

1 floor = 1 to 2 floors;
2 floors = 1 to 2 floors;
3 floors = 3 to 4 floors;
4 floors = 3 to 4 floors;
5 floors = 5 to 6 floors;
6 floors = 5 to 6 floors

But by just simply entering the classification/legend I want (by hand) I get this result, which as you can see it duplicates the results:

enter image description here

Do I have to use "Ruled-based" and if so... how?

  • 1
    I vote for the reopening since the OP has just applied the suggestions. – mgri Apr 11 '17 at 14:11
4

You should use a Rule-based renderer. Following your data, something like that:

enter image description here

Click on the + button for adding a rule and then insert the custom expression (as indicated in the red box above).

Remember also to click on the Apply button for applying the style.

  • I just edited my comment, with a more complex answer. Can you help me? Thank you in advance for you patience :) – M_M Apr 11 '17 at 11:24
  • 1
    @M_M, you are looking for help for another issue that, as you wrote in your edited question, is applied to another case. Only one question per question is allowed in GIS SE, so the best practice would be the following: 1) remove the last edits on your question and ask a new separate question where you describe the new issue; 2) mark my answer as accepted if it helped you to solve the current problem. Once you have asked the new question, I will try to give you a help! =) – mgri Apr 11 '17 at 12:25
  • 1
    Yes, thank you! Probably because I'm new here :) Just editing! Thank you – M_M Apr 11 '17 at 13:48
  • @M_M well done, thanks! If I'm able to solve your new issue, I will give my solution! – mgri Apr 11 '17 at 14:12

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.