Tuesday, 4 December 2018

How to create layer from shapefile in QGIS?



I have a road network shapefile that I want to use to create multiple maps from it, each based on some selection of original shapefile. For example, I want to show all highways with some custom symbology and all bike paths with a different symbology both based on the road shapefile( so they are automatically updated whenever network is modified).


I don't want to create a new shapefile for each of them, as the whole purpose is to map these selections and see the changes as road network is updated. I think I was able to do this in ArcGIS by creating a new layer, but at least I can't find it in QGIS.


Thanks in advance.



Answer



The simple answer is to style you layer with an attribute to show the difference.


If you need to do anything more complicated you can do two things.




  1. Use the rule based rendering


    http://woostuff.wordpress.com/2012/01/25/improvements-to-the-qgis-rule-based-rendering/





  2. Open the layer more then once and set the query/filter for each layer to something different.


    enter image description here




The first option is best if you want to show everything but based on more then one attribute. The second is good if you need to turn layers on and off to see only one or n types at a time.


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...