<br><br><div class="gmail_quote">On Wed, Oct 17, 2012 at 3:42 PM, Peter Willis <span dir="ltr"><<a href="mailto:pwillis@aslenv.com" target="_blank">pwillis@aslenv.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-CA" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hello,<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">On second thoughts, this is not really what I want.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I have a SHP format polygon vector file already.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I want to use that existing vector file to mask the ENVI format BSQ file through all (49) channels.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">(ie: ‘mask’ meaning set any values inside vector polygons to a specific value within the output ENVI BSQ file )<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Perhaps I’m missing something…</span></p>
</div></div></blockquote><div><br></div><div>Peter,</div><div><br></div><div>I think gdal_rasterize can do this, but I imagine as it is</div><div>setup now I think you will have to explicitly list every </div><div>band to write to. For instance I was able to do the following</div>
<div>for a 3 band TIFF file:</div><div><br></div><div>gdal_rasterize -b 1 -b 2 -b 3 -burn 128 alaska_box.shp work.tif</div><div><br></div><div>This burned the value 128 into bands 1, 2 and 3 in work.tif.</div><div><br></div>
<div>Best regards,</div></div>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/~warmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush | Geospatial Software Developer<br><br>