<div dir="ltr">Hi,<div><br></div><div>My code for creating a Tiff raster looks something like this:</div><div><br></div><div>int nBands = 5;</div><div>dataset->Create(filename, width, height, nBands, ...);</div><div><br></div><div>for (int i = 1; i <= nBands; ++i)<br clear="all"><div>{</div><div>    GDALRasterBand *band = dataset->GetRasterBand(i);</div><div>    band->SetDescription(someString);</div><div>    band->WriteBlock(someData);</div><div>}</div><div><br></div><div>It appears that only the description to band 1 is written (it's the only one reported by gdalinfo).  A little debugging leads me to believe that what's happening is that WriteBlock() invokes Crystalize() -> WriteMetadata(), which takes care of setting the band description.  But once Crystalize() is called, it sets a flag so as to be a NOOP in future calls.  I'm not using streaming.</div><div><br></div><div>I'm trying to understand if this behavior is by design, a limitation that I can't find in the documentation or a bug.</div><div><br></div><div>Any pointers appreciated.<br><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div></div>