I would like to select all the polygons that are within my raster extent.

Is there a tool in QGIS to do it ?

Such as the select by location tool but instead of comparing the features from another vector doing it with the raster.

1 Answer 1


Use the Select Features by Expression tool, with this expression:

within($geometry, layer_property( 'raster name', 'extent'))


  • Substitute the name of your raster name where the expression says 'raster name'
  • The two layers must be in the same coordinate reference system

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.