2

I have a raster .tif Digital Elevation Model I am trying to clip to an irregular polygon using the GDAL\Clip raster by mask layer. I ticked 'Crop the extent of target dataset to extent of cutline'.

However, the output raster has the grid cells outside the mask layer cutline converted to 'Nodata' (apart from being annoying, it also retains the large file size of the source raster). I tried setting destination nodata value to 'None', but this resulted in values of zero instead. (Please note that I do not know how to use the Commander/Python.) Any advice please?

processing.runalg("gdalogr:cliprasterbymasklayer","Input Raster", "Clip layer.shp","",False,True,False,5,4,75,6,1,False,0,False,"","Output raster")

  • 2
    This is normal behaviour, since raster data are defined by extent (rectangle by default) and cell size. – Oto Kaláb Jul 19 '17 at 13:14
3

This is normal behaviour, since raster data are matrices defined by extent (rectangle by default) and cell size- resolution (each cell have same size) or number of columns and rows in extent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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