[GIS] Selecting features within polygon from another layer using QGIS

overlapping-featurespoint-in-polygonqgisselect-by-location

I'm using QGIS 1.8 with a PostGIS database and I have three PostGIS layers in QGISL: a lines, a points, and a polygon.

I'm trying to select features in the polygon layer and mark all points within this polygon.

For me the only way to do this is to use the button "Select by Polygon" but in this way, I cannot use an existing polygon for selection.

Best Answer

Two possible solutions:

  1. You can use the "Select by Location" from Vector > Research tools > Select by Location and tick the "Use selected features only" checkbox.
  2. If you want to actually export the points which intersect your selected polygon to a new shapefile then "Intersection" from Vector > Geopressing tools > Intersection and again tick the "Use only selected features" checkbox. The input layer will be your points layer, and the select layer will be your polygon layer.