<div dir="ltr">Thanks Even & Javier! Very helpful advice! Much appreciated.<div><br></div><div>Simeon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 3, 2023 at 7:02 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Simeon,<br>
> Band 1 Block=210x39 Type=Byte, ColorInterp=Gray<br>
><br>
> The only way I've been able to get the behavior I need is to open the <br>
> written dataset from the filesystem and set the no-data value <br>
> explicitly in the band, which is inefficient and awkward.<br>
<br>
You don't have much alternative than doing that if you use <br>
GDALCreateAndReprojectImage(). But GDALCreateAndReprojectImage() is a <br>
"simplistic" warp API that doesn't have all the bells and whistles of <br>
what gdalwarp lib. You could potentially submit a patch to <br>
GDALCreateAndReprojectImage() to set the nodata value, which would be <br>
reasonable, but perhaps you could just bind the GDALWarp() C function <br>
that is the heart of the gdalwarp binary. You'd get all the advanced <br>
heuristics of gdalwarp that you don't get with the less advanced warp <br>
functions.<br>
<br>
Even<br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
<br>
</blockquote></div>
<br>
<font face="Verdana" color="#808080" size="1">The content of this email is intended for the person or entity to which it is addressed only. This email may contain confidential information. If you are not the person to whom this message is addressed, be aware that any use, reproduction, or distribution of this message is strictly prohibited. If you received this in error, please contact the sender and immediately delete this email and any attachments.</font><br>