Home > qgis > How to create layer from shapefile in QGIS?

How to create layer from shapefile in QGIS?

January 23Hits:1
Advertisement

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.

Answers

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

    How to create layer from shapefile in QGIS?

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

    How to create layer from shapefile in QGIS?

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.

Tags:qgis

Related Articles

  • How to create layer from shapefile in QGIS?

    How to create layer from shapefile in QGIS?January 23

    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

  • How to organize a kml created from a shapefile in QGIS?April 6

    I have a shapefile that I would like to export into a kml to share it with my colleagues. This shapefile contains a few hundred polygons. I have QGis 2.2.0 on Windows 7. I would like to create a kml that somehow keeps the same style as my shapefile.

  • How to update postgis layer from shapefile in QGIS?July 9

    My usual workflow with updating layer from shapefile was to: Open DB Manager; Load SHP files into QGIS; Open DB Manager; Import file (with drop option). Now my problem is that I have created views on data in Postgresql and I can't just drop that tabl

  • Error writing memory layer to shapefile in QGISJanuary 19

    I have created a memory polygon layer in my QGIS plugin. Then I added a buffer based on a point. I can see the ploygon memory layer in the map canvas and I can save it to a shapefile from the main GUI. But when I try to save it with the following cod

  • How to create a date field in QGIS shapefileApril 30

    When I create a new shapefile in QGIS, I'm presented with the "New Vector Layer" window, where I specify the Shapefile type (Point/Line/Polygon) and am then able to create attribute fields. I'm only able to select the field type as Text/Integer/

  • How can I import only a subset of the polygons in a Shapefile using QGIS?October 13

    I have a shapefile that is covering a huge area, with lots of polygons. The area I'm insteresting in is small and limited. Is there any way to only import (using "add vector layer") the polygons from the shapefile that covers my smaller area? Ho

  • How to create contiguous area cartograms in QGIS or R?

    How to create contiguous area cartograms in QGIS or R?March 9

    Here is what I want to achieve (on the right): I am looking for a tool or a method to transform a shapefile (with QGIS or R) into this form. And please be aware: It's not just clipping a hexagonal grid or a grid of hexagons! Each hexagon should repre

  • How to create a 3D shapefile from a raster?April 3

    I´m trying to make a 3D shapefile from a raster feature but not working. Tried already to run the command in OSGeo4W but nothing happen. I'm using the Qgis 1.8.0 Lisboa. The purpose is to get a final 3D dxf file! Can anyone help me? --------------Sol

  • Open Arabic Shapefile in Qgis

    Open Arabic Shapefile in QgisFebruary 22

    I have a shape-file all it's fields are in Arabic. When I opens it in qgis 2.0 all the data is replaced by "?". I changed the encoding to Arabic or UTF-8 but with the same result. How can I Open an Arabic Shapefile in Qgis. --------------Solutio

  • Properly clipping shapefiles in QGIS April 4

    I'm looking for help getting the correct shapefile. I'm working off of the files provided by the canadian government at http://geobase.ca/geobase/en/search.do?identifiant=&region=mb&produit=nhn&language=en These are identified as all the shape

  • PyQGIS: Trying to export layer to shapefileDecember 29

    I´m using python in QGIS 2.2 and struggling with an error trying this: # create layer from text _vlayer = QgsVectorLayer(_ur1, "raw", "delimitedtext") works fine but: # export layer to shape _writer = QgsVectorFileWriter.writeAsVectorF

  • Create HexBins for shapefilesAugust 21

    I usually create hexbins using the MMQGIS tools in QGIS. I would create a hex layer and intersect it with a shapefile. I've tried to create a hex shapefile and importing it into a PostGIS and tried to do an ST_Intersects but the result usually come u

  • Why does the QGIS Server WMS layer not load in QGIS Desktop?

    Why does the QGIS Server WMS layer not load in QGIS Desktop?December 5

    I have created a .QGS file with one PostGIS layer which is the alaska.shp file that comes from the samples. It was loaded via the shp2pgsql utility. When looking at my qgs project referencing the postgis layer, I see the alaska shape, everything appe

  • Is there a way to create a Personal Geodatabase in QGIS?September 19

    I believe I know the answer, but I wanted to ask. Is there a way to create a Personal Geodatabase in QGIS? I know QGIS can view Personal Geodatabases, but can one be created? I have a project where the client is requiring a small spatial database (th

  • How to set Definition Query on ArcPy layer from shapefile?March 24

    I'm trying to determine options to set a layer definition query using ArcPy. I know that it is possible when using arcpy.mapping.ListLayers(). However, in this scenario I am loading in shapefiles, and using arcpy.MakeFeatureLayer_management() in ArcP

  • Creating a New Shapefile from Joined Access TableApril 23

    I'm dealing with a very large amount of polygons. Once I join the land use access table to the parcel shapefile, it takes forever for Arc to draw the polygons. I'm trying to select all residential polygons in Harris County, TX from the land parcels.s

  • Creating a new shapefile based on an existing problematic shapefileJuly 28

    I have a large floodplain shapefile and would like to create a new shapefile based on coverage. I'm having major problems with the original (intersections and other errors) which I've been unable to fix in either QGIS/Grass or ArcGIS. Is there any wa

  • Is there a way to get Z value from 3D multipoint shapefile in QGIS?July 30

    Is there a way to get Z value/height/altitude from 3D multipoint shapefile in QGIS? All I found is way through SpatiaLite or PostGIS as explained here: http://faunaliagis.wordpress.com/2013/08/14/transfer-3d-shapefiles-z-values-to-the-table-of-attrib

  • Unable to merge CSV and CSVT with shapefile using QGIS due to "text" fields?

    Unable to merge CSV and CSVT with shapefile using QGIS due to "text" fields?September 25

    I know the question is all over this site, unfortunately I cannot find a solution. I have this CSV file and this CSVT file that I want to merge with this shapefile. I've tried to format the .csv using all software mentioned in the forum including Exc

  • Reordering of layer properties fields in QGIS possible? February 2

    This question already has an answer here: How to change position of columns in attribute table? 2 answers I'm wondering why such simple things are not possible. I have 5 fields on my layer and the last one shall be on the top now. But there is no way

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.496 s.