<div dir="ltr"><div>Is this doing what you need?</div><div><br></div><div><ul style="box-sizing:border-box;margin:0px 0px 24px;padding:0px;list-style:outside;line-height:24px;color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:16px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;white-space:normal;background-color:rgb(252,252,252);text-decoration-style:initial;text-decoration-color:initial"><li style="box-sizing:border-box;list-style:outside;margin-left:24px"><p id="m_-9220264675853195274gmail-drivers/raster/cog-co-STATISTICS" style="box-sizing:border-box;line-height:24px;font-size:16px;margin:0px"><b style="box-sizing:border-box;font-weight:700">STATISTICS=[AUTO/YES/NO]:<span> </span></b>(GDAL >= 3.8) Defaults to<span> </span><code style="box-sizing:border-box;font-family:"Source Code Pro",Consolas,"Courier New",monospace;font-size:14.4px;white-space:normal;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:black;overflow-x:auto"><span style="box-sizing:border-box">AUTO</span></code>. Whether band statistics should be included in the output file. In<span> </span><code style="box-sizing:border-box;font-family:"Source Code Pro",Consolas,"Courier New",monospace;font-size:14.4px;white-space:normal;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:black;overflow-x:auto"><span style="box-sizing:border-box">AUTO</span></code><span> </span>mode, they will be included only if available in the source dataset. If setting to<span> </span><code style="box-sizing:border-box;font-family:"Source Code Pro",Consolas,"Courier New",monospace;font-size:14.4px;white-space:normal;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:black;overflow-x:auto"><span style="box-sizing:border-box">YES</span></code>, they will always be included. If setting to<span> </span><code style="box-sizing:border-box;font-family:"Source Code Pro",Consolas,"Courier New",monospace;font-size:14.4px;white-space:normal;max-width:100%;background:rgb(255,255,255);border:1px solid rgb(225,228,229);padding:2px 5px;color:black;overflow-x:auto"><span style="box-sizing:border-box">NO</span></code>, they will be never included.</p></li></ul><div><a href="https://gdal.org/en/stable/drivers/raster/cog.html">https://gdal.org/en/stable/drivers/raster/cog.html</a></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 25 Nov 2024 at 04:05, shark shark via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</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">
<div>
<div dir="ltr">
<div></div>
<p style="font-size:16px;text-decoration:none;box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229,231,235);margin:1.25em 0px;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:rgb(55,65,81)">
Hi! Have a good day :D</p>
<p style="font-size:16px;text-decoration:none;box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229,231,235);margin:1.25em 0px;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:rgb(55,65,81)">
I'm working on a GeoTIFF/COG renderer and wondering if GDAL automatically writes the<span> </span><code style="box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229,231,235);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:0.875em;font-weight:600">minsamplevalue</code><span> </span>and<span> </span><code style="box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229,231,235);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:0.875em;font-weight:600">maxsamplevalue</code><span> </span>tags
when creating a TIFF file, especially for large files. </p>
<p style="font-size:16px;text-decoration:none;box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229,231,235);margin:1.25em 0px;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:rgb(55,65,81)">
I just made a cog with goal and I didn’t find these tags. And I didn’t find a guarantee about these tagsin gdal doc. </p>
<p style="font-size:16px;text-decoration:none;box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229,231,235);margin:1.25em 0px;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:rgb(55,65,81)">
Thanks for your help!</p>
<p style="font-size:16px;text-decoration:none;box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229,231,235);margin:1.25em 0px;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:rgb(55,65,81)">
Best, Lucas.</p>
<br>
<div id="m_-9220264675853195274m_-2935949771280211279ms-outlook-mobile-signature" dir="ltr"></div>
</div>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>