I have population points for Germany and a polygon of an urban area. I've joined population data with the polygon to obtain the population of that urban area. Now my aim is to obtain a layer with points that fall outside the polygon. Is there a way to do so? 
- 2Use the 'Select by polygon' tool with the concerned layers as input, then use the 'Invert selection' tool. When the correct points are selected, right-click the layer, go to the export section and choose 'Save selected features as...'Gabriel– Gabriel2018-12-17 16:59:34 +00:00Commented Dec 17, 2018 at 16:59
- @GabrielC. thanks for your input, however I can't find the "select polygon" tool anywhere, I'm using QGIS 2.18.25Tim56– Tim562018-12-17 17:09:28 +00:00Commented Dec 17, 2018 at 17:09
- 2Given the answer to your other question, once you have features selected, you can simply use the attribute table to 'invert the selection', then export those features to a new shapefile.Inactivated Account– Inactivated Account2018-12-17 17:36:51 +00:00Commented Dec 17, 2018 at 17:36
- 1@csk provided the answer that works with 2.18. The 'Select features by Polygon' tool doesn't work with polygon layers until QGIS 3.Gabriel– Gabriel2018-12-17 18:44:01 +00:00Commented Dec 17, 2018 at 18:44
Add a comment |
1 Answer
Find the select by location tool in the Processing Toolbox. Use the select by location tool with the following settings:
- Select features from population point layer
- Where the features (geometry predicate) disjoint
- By comparing to the features from urban area polygon layer
Now you have selected all the points that fall outside the urban area. Export the selection as a new layer (Right click on point layer in layer panel > Export > Save Selected Features as...).