When I use:
gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff
I get a new tiff with a white wholehole in it with the shape of the polygon shapefileshp. However, when I use the reverse
process:
gdal_rasterize -i -b 1 -b 2 -b 3 -burn 255 -burn 255 -burn 255 polygon.shp tiff.tiff
I get a blank imagetiff. I expect the old tiff shaped by the polygon (ie. raster values inside the polygon), instead.
Any ideas why this happens? is it possible to clip a raster with a shapefile in this way?