QGIS Select Within Plugin

Creates Centroid within and Point on Surface within selections. Calculates a central point for each geometry being selected, and tests if it falls within a selecting geometry.

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.

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.

For the difference between Centroid and Point On Surface see:
http://workshops.boundlessgeo.com/postgis-intro/geometry_returning.html#st-centroid-st-pointonsurface

Post:
Centroid Within Selection in QGIS

Code:
GitHub Code Base

Issues and bug tracker:
GitHub Issues

2 thoughts on “QGIS Select Within Plugin

  1. Pingback: Centroid Within Selection in QGIS | GIS for Thought

  2. Pingback: Announcing Centroid Within Selection QGIS Plugin | GIS for Thought

Leave a Reply

Your email address will not be published. Required fields are marked *