6

I am very new to qgis, and i am doing a project on representing child immunization on thematic maps.

I want to represent the data which is even number in one color and odd number data in another color, i tried representing it in a thematic map.

In the style tab of layer properties I selected it as categorized and then selected the column which I want to represent it on map and selected color in color ramp and then classified it,but I don't know how to show even data in one color and odd data in one color.

0

1 Answer 1

19

You can use Rule Based Styles for this.

Go to the Style tab of layer properties and choose Rule Based from the drop down menu (where you selected categorized before).

Click on add rule (a small plus icon on the bottom of the window) and the Rule Properties window will open, Label it as Odd, in the filter use your data column (mine was category) % 2 = 1 (odd numbers will have a remainder of 1 when divided by 2). Then set the symbology you want to apply to the style. enter image description here

Similarly add another Rule, this time for Even values ( remainder 0, since even numbers will be divisible by 2 ): enter image description here

Click OK and it's done.

1
  • 2
    your information helped me alot
    – sam4492
    Commented Feb 16, 2016 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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