[GIS] Showing only selected features from attribute table on layer using QGIS

fields-attributesqgisqgis-2

One of the layers has around 5000 attribute entries, based on a CSV file of species records. All the features are of course shown on the map layer. How can I select a specific class of features so that only they appear on a map, so that for example a distribution map for a species can be generated. I have tried "Advanced Filter (Expression)" so that the Attribute Table shows only the required species, but it still shows all the attributes on the map layer.

I am using QGIS 2.10.1.

Best Answer

  1. Double click on your layer in the table of contents to go to Layer Properties.
  2. Go to the general tab (hammer and screwdriver icon).
  3. Look for "Feature subset" and enter an expression (perhaps using the Query Builder button). For example: "species" = 'homo sapiens'. This would restrict the features to only those records meeting this criteria.

Example:enter image description here

Related Question