Is this doing what you need?

   -

   *STATISTICS=[AUTO/YES/NO]: *(GDAL >= 3.8) Defaults to AUTO. Whether band
   statistics should be included in the output file. In AUTO mode, they
   will be included only if available in the source dataset. If setting to
   YES, they will always be included. If setting to NO, they will be never
   included.

https://gdal.org/en/stable/drivers/raster/cog.html

On Mon, 25 Nov 2024 at 04:05, shark shark via gdal-dev <
gdal-dev@lists.osgeo.org> wrote:

> Hi! Have a good day :D
>
> I'm working on a GeoTIFF/COG renderer and wondering if GDAL automatically
> writes the minsamplevalue and maxsamplevalue tags when creating a TIFF
> file, especially for large files.
>
> 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.
>
> Thanks for your help!
>
> Best, Lucas.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to