gdal_rasterize can be used to create a hole using a polygon from a vector datasource.
gdal_rasterize -burn 0 -b 1 -b 2 -b 3 -l my_polygon my_image.tif my_polygon.shp regards On 22 November 2011 11:22, Jay Jennings <[email protected]> wrote: > Hi List, > > I’m looking for a slick way, using GDAL utilities, to make a NoData “hole” > in an existing image : I’d like to set value 0 (which is this image’s > NoData value) for each band of the image within the rectangle denoted by > minX, minY, maxX, maxY. I looked at ‘gdal_translate’ and ‘gdalwarp’ but I > didn’t see any obvious way to get there. > > > > ......................................................... > > Jay Jennings > > Senior Software Developer > > GeoEye, Inc. (NASDAQ: GEOY) > > > > > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
