Jay,<br><br>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.<br>Your VRT file should contain four SimpleSource elements for each band.<br><br>First create a simple vrt file using gdalbuildvrt, edit it and then use gdal_translate to create a new file.<br>
<br><a href="http://www.gdal.org/gdalbuildvrt.html">http://www.gdal.org/gdalbuildvrt.html</a><br><a href="http://www.gdal.org/gdal_vrttut.html">http://www.gdal.org/gdal_vrttut.html</a><br><br><div class="gmail_quote">On Tue, Nov 22, 2011 at 9:52 PM, Jay Jennings <span dir="ltr"><<a href="mailto:Jennings.Jay@geoeye.com">Jennings.Jay@geoeye.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi List,<u></u><u></u></p>
<p class="MsoNormal">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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom: 3pt; margin-left: 0in;">
<span style="color: rgb(31, 73, 125);">.........................................................</span><b><span style="font-size: 9pt; color: black;" lang="EN-GB"><u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom: 3pt; margin-left: 0in;">
<b><span style="font-size: 10pt; color: rgb(0, 64, 128);" lang="EN-GB">Jay Jennings</span></b><b><span style="font-size: 10pt; color: rgb(0, 64, 128);"><u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom: 3pt; margin-left: 0in;">
<span style="font-size: 10pt; color: rgb(0, 64, 128);" lang="EN-GB">Senior Software Developer
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom: 3pt; margin-left: 0in;">
<span style="font-size: 10pt; color: rgb(0, 64, 128);" lang="EN-GB">GeoEye, Inc. (NASDAQ: GEOY)
<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
<br>+91-9494447584<br>17.2416N 80.1426E<br>