I am trying to clip my Raster file according to a shape file geometry. I am using the following code
gdalwarp -cutline INPUT.shp INPUT.tif OUTPUT.tif
But it is resulting a black color outside the shape file geometry extent. I am giving the example here. In the first Image that I want to clip. The second image is the resultant raster but I want the 3rd Raster where the outside of the geometry will be null.
1st Image: INPUT Raster
2nd Image: OUTPUT Raster
3rd Image: I want to get output like this