[GIS] Clipping raster with an irregular shape

clipdemqgisrastervector

How can I clip my DEM raster in a irregular shape in QGIS?

I have used the clipping tool but it only does rectangles I believe.

Best Answer

Within QGIS you can use the 'clipper' tool in Raster > Extraction > Clipper. Alternatively, you can use the gdalwarp command line utility if you have this installed (this is what QGIS will run on your behalf).

gdalwarp -of GTiff -cutline shapefile.shp -crop_to_cutline input.tiff output.tiff
Related Question