Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] Add option to QgsFeatureRequest to request features
within a certain distance of a reference geometry E.g. this request will retrieve all features within 50 map units of the provided linestring: QgsFeatureRequest().setDistanceWithin(QgsGeometry.fromWkt('LineString(0 0, 10 0, 12 1)'), 50) A new enum Qgis::SpatialFilterType has been added to reflect whether a request uses no spatial filter, a BoundingBox filter (via setFilterRect), or the new DistanceWithin filter. Distance within filters are treated like bounding box filters, in that they are independant of any attribute/id filters (such as feature ids or expressions).
- Loading branch information