Runs through each geometry that you want to select from and tests if the centroid or the point of surface central point falls within the selecting geometry. If the central point falls within the selecting polygon, it is usually mostly inside the selecting geometry.
Or selecting based on percentage overlap. By default dissolving the selecting features first.
Useful if you are splitting up a polygon layer based on a polygon coverage layer, as each polygon will only end up in one of the selecting polygon areas. Unlike with an Intersects query which would return the geometry twice if it is on the border one on each side, or a Within query, which would not return the geometry at all. Very useful if your selection and selecting geometries have similar boundaries.
Version 0.4 brings a couple of new features to the Select Within plugin.
Most importantly it now supports mostly within and percentage within selections.
Also introduced is Pole of Inaccessibility within selections. As implemented in the QGIS core with the Polylabel algorithm: https://github.com/mapbox/polylabel
Point within selection examples. Centroid (red), Point on Surface (green), and Pole of Inaccessibility (blue):
Examples:
Centroid within:
Point on Surface within:
Pole of Inaccessibility within (1.0 tolerance):
50% within:
75% within:
Code:
GitHub Code Base
Issues and bug tracker:
GitHub Issues
Original Post:
Centroid Within Selection in QGIS