# sec_interp.core.utils.geometry_utils.filtering module

Geometry filtering and cleaning utilities.

sec_interp.core.utils.geometry_utils.filtering.filter_features_by_buffer(features_layer: QgsVectorLayer, buffer_geometry: QgsGeometry, buffer_crs: QgsCoordinateReferenceSystem | None = None) → list[QgsFeature]

  Filter features that intersect with buffer using spatial index.

  Parameters:

    - features_layer – Layer containing features to filter.

    - buffer_geometry – Buffer geometry to use for spatial filter.

    - buffer_crs – CRS of the buffer geometry (optional).

  Returns:

    List of QgsFeature objects that intersect the query buffer.