0

I would like to clip a shapefile based on the values of a raster file beneath it, using QGIS.

The specific context is a shapefile of Local Government Areas overlaid onto a population density raster. I would like to clip the shapefile based on the values of the raster file, e.g. clip the shape Local Government Area to only include areas with a population density above 50 people per square kilometre.

I have found resources on how to do the reverse (clip a raster from a shapefile) but not to clip a shapefile based on raster values.

1 Answer 1

1

Convert your raster to shape (raster -> conversion -> vectorize), extract only the areas of interest from that shape (select by attribute) and then do the clipping.

Where exactly you find these tools depends on your software which you haven't told us yet.

2
  • 1
    Thanks, updated the question to include that I am using QGIS software.
    – Lucy
    Jan 15, 2019 at 12:15
  • Added the location of the vectorization tool in the menu.
    – Erik
    Jan 15, 2019 at 12:31

Your Answer

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

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