Suppose I have a satellite image formatted as a .tif
file and a .kml
file that contains a series of polygons that define an area of interest in this image. Now I can run:
gdalwarp satellite.tif satellite_aoi.tif -cutline aoi.kml
This will extract a new .tif
image that only has the area of interest specified by the .kml
file.
Now instead, what I want to do is perform the same area cut out but for the output, I want the areas of interest to be a mask. That is, I want the output of those regions to be a constant white color and preferably an image with a single channel. Is it possible to do this with gdalwarp
? I looked at the documentation and I could not find any command to do what I need.