<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Andrew,<br>
    </p>
    <blockquote type="cite"
cite="mid:CACJ51z1Zy2=0RQWr0-xaUzTDaBb_0nMsS+DXrKiv5Z1oOtsHYA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><br>
        <div>Is a newly created raster band initialized to zero? If not,
          is there some trivial way to perform such an initialization
          (this is a MEM driver raster, if that matters).<br clear="all">
        </div>
      </div>
    </blockquote>
    <p>This might be indeed driver dependent. Drivers will generally
      initialize to zero or the nodata value. As far as I can see, the
      MEM driver uses calloc() to initialize the buffer, so that should
      be zero. Otherwise you can use GDALRasterBand::Fill() to
      initialize at the value of your choice</p>
    <p>Even<br>
    </p>
    <blockquote type="cite"
cite="mid:CACJ51z1Zy2=0RQWr0-xaUzTDaBb_0nMsS+DXrKiv5Z1oOtsHYA@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          <span class="gmail_signature_prefix">-- </span><br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">Andrew Bell<br>
            <a href="mailto:andrew.bell.ia@gmail.com" target="_blank"
              moz-do-not-send="true" class="moz-txt-link-freetext">andrew.bell.ia@gmail.com</a></div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>