I am pretty lost with the attribute table, so I couldn’t figure out the already existing answers about it (using QGIS 2.12.3.). I have a shapefile with all the protected areas in one region. Since I don’t need all of those protected areas, I would like to know how I can hide all the other objects? I have to search for the objects through their name and really don’t know how to use the dialog with all its functions.
Asked
Active
Viewed 215 times
1
1 Answers
1
What you're looking for is called a definition query. There is a tool for it in qgis called query builder.
Select the field your names are stored in and type the name of the protected area to display, i.e: "NAME" = 'Example Area'.
You may want to look at this post, it explaines the use of the query builder in further details: Displaying only selected features on map in QGIS? or also: http://docs.qgis.org/2.0/en/docs/user_manual/working_with_vector/query_builder.html
I hope this explains what you want to achieve.
-
@Freya: The German name for the query builder is Abfrageeditor. You can switch the qgis.org page (second link in my answer) to German if you want. – dru87 Feb 17 '16 at 15:29
-
Thanks dru87! do you know a formula with which I can select all the shapefiles in my data of the protected areas, but those with the name, for example "Ortenberg" and "Plettenberg"? This way it would be very easy to delet the rest. – Freya Feb 18 '16 at 10:13
-
Try:
"ProtectedAreas" <> 'Ortenberg' AND "ProtectedAreas" <> 'Plettenberg'. This should select all the other areas, besides those mentioned. If you want to select the area mentioned, use=instead of<>. If you decide to use=then you have to switch to the logical operatorORinstead ofAND, because your areas don't contain both names at once. Hope this helps. – dru87 Feb 18 '16 at 10:45 -
yeahii perfect! it worked! thank you so much! I would have been never able to get that formula by myself! thanks!! – Freya Feb 18 '16 at 11:53
-
I just don’t know how to filter them the way I need (by name) or better: a filter which shows me everything but the objects I need, so that I can delete them right away.
– Freya Feb 17 '16 at 15:05I thought it’s something like that, but it doesn’t work: "OBJEKT" NOT ILIKE '%Tiefer Weg%' AND ILIKE '%Ortenberg'% AND ILIKE '%Plettenkeller'%
– Freya Feb 18 '16 at 07:13