Wednesday 22 April 2015

symbology - Combining 2 different symbologies in QGIS


I've got a layer (road axis) with 2 different attributes : one with the amount of trafic, another with the number of people living next to this road. As symbology for the trafic amount, I like use different thicknesses. For the number of people, I want to use a different colors. How can I make a combination of these 2 symbologies.



Answer



A number of ways to achieve this I think but I will mention a couple:




  • Rule-based style





Right-click your layer and go to Layer Properties > Style and change Single Symbol to Rule-based. Here you can add multiple symbology layers by clicking on the "plus" sign indicated by the red circle. You can specify the symbol, its attributes such as size and overall appearence, and you can set rules to determine which symbology according to the attribute of each feature. Note that "Traffic" and "Residents" are the name of the attribute fields.


Rule-based style






  • Graduated style




Right-click your layer and go to Layer Properties > Style and change Single Symbol to Graduated. Here you can specify one field/column and easily create a series of symbololgy layers each according to a range of values:



Graduated style


Note that using Graduated (or Categorized) only affects one field. You would need to duplicate your layer and repeat the same steps for your second field.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...