I have two shapefiles: polygon(buffer) and point.
How can I select only one point in each buffer in QGIS?
If I use the "Select by Location", I will get all points inside the polygons, however I need only one? It doesn't matter which point out of two or more in polygon is selected.
Best Answer
If you don't care which point is selected, you can use this small PyQGIS script. Paste into a blank editor in the Python Console, change the layer names in the first two lines to match your layer names and click run.
Result: