TransWikia.com

Several QGIS layers sharing single shapefile

Geographic Information Systems Asked by Bill C on December 26, 2020

Is it possible for several QGIS layers to share a single attribute file, but each layer containing a different set of features from that one shapefile based on the value of an attribute?

One Answer

Yes, you just need to add a filter (called a definition query in ArcGIS Desktop).

Say you have an attribute field "field_name" with values A, B, and C:

  • Add the shapefile
  • Open the shapefile's properties
  • In the Source tab, at the bottom right click the Query Builder button
  • Add the expression "field_name" = 'A'
  • This layer will now be filtered to only show featrues from that shapefile which have that attribute
  • Duplicate this layer and edit the filter as many times as you need to show the other attributes

Just note that any edits you make to one of those layers will affect the rest of the layers as you are editing the shared underlying data.

Correct answer by TeddyTedTed on December 26, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP