I have one shapefile containing parts of hidrographic basins on the brazilian state of EspĂrito Santo. I want to generate a classification style/label based on two attributes:
1st: The percentage of forest on the landscape of each basin. The data should be divided between 0 – 10% and 10-50% landscape coverage (there's no more than 50% coverage on this shapefile)
2nd: The Patch Connectivity index generated from my analysis, ranked in crescent order.
Basically, the shape should be divided based on the percentage of forestation and each class would recieve a different color gradient, that would rank the PC index. From what I know about QGIS, this should be done using a rule based styling. I tried it using the percentage of forest as my first classifier and then adding categories to it. Here's what I came up with (let's try to overcome the language barrier here):
Problem is, after I apply these settings, the shapefile appear as if it's only being classified using the percentage of landcape.
I have tried deactivating the plain color label, but the whole shapefile disappears. If I change the style of the 1st level label to a translucid one, there's nothing beneath. I also tried changing the symbol levels (the order they're drawn) and nothing happened. Any thoughts on how to solve this?
Best Answer
The rules can be simplified a lot: By nesting the rules, you can get rid of all the IF statements:
The second important thing is to deactivate the symbols on the top-level rules. If these symbols are not deactivated, they are drawn every time the rule is true. That's why you saw only two colors in your solution.