[gdal-dev] Making a "hole" in existing image

Travis Kirstine traviskirstine at gmail.com
Tue Nov 22 13:16:25 EST 2011


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 <Jennings.Jay at geoeye.com> 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
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>


More information about the gdal-dev mailing list