1

I am using QGIS 2.14.

What I have: A raster file and a polygon.
What I need to do: Cut the raster using the polygon.

Important: But I want to keep the remaining part of the raster from which the polygon has been cut. Basically, I want to make a hole on a raster, shaped like the polygon.

3
  • 1
    Interesting idea. just a quick answer to your first question nothing actually happens to the raster, a new layer is created that is clipped to the extents of the polygon. as for creating a doughnut, perhaps look into raster calculator and adding a simple mask on top Commented Nov 28, 2016 at 11:45
  • 1
    I think you're misunderstanding some things... raster is a continous data layer (word-key: continous) you can't make holes in it like in vector (or am I wrong?)
    – Jendrusk
    Commented Nov 28, 2016 at 12:22
  • Use gdal_rasterize and burn your polygon into the raster. Relevant old answers gis.stackexchange.com/questions/138369/… gis.stackexchange.com/questions/163371/… gis.stackexchange.com/questions/173308/…
    – user30184
    Commented Nov 28, 2016 at 13:09

0

Your Answer

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

Browse other questions tagged or ask your own question.