[gdal-dev] Making a "hole" in existing image
Chaitanya kumar CH
chaitanya.ch at gmail.com
Tue Nov 22 12:06:40 EST 2011
Jay,
You can use the VRT format to do this. Create patches of the image
surrounding the hole. Make sure the nodata is set to zero.
Your VRT file should contain four SimpleSource elements for each band.
First create a simple vrt file using gdalbuildvrt, edit it and then use
gdal_translate to create a new file.
http://www.gdal.org/gdalbuildvrt.html
http://www.gdal.org/gdal_vrttut.html
On Tue, Nov 22, 2011 at 9:52 PM, 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
>
--
Best regards,
Chaitanya kumar CH.
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111122/1370e43f/attachment-0001.html
More information about the gdal-dev
mailing list