We recently began seeing the following error (which doesn’t seem to produce 
incorrect output images)


ERROR 1: _TIFFVSetField:/vsimem/gtiff/thread/job/0x1f5d0970: Bad value 4 for 
"ExtraSamples" tag

when creating a geotif image from C++ with creation options:

char *disk_create_options[] = {"COMPRESS=ZSTD", "ZSTD_LEVEL=1", 
"INTERLEAVE=BAND", "Tiled=YES", "NUM_THREADS=ALL_CPUS", "SPARSE_OK=True", 
"PREDICTOR=3", 0};

We are not explicitly using the vsimem driver, only the driver returned by:
GDALGetDriverByName("GTiff")

Notably, the “ALPHA” creation option is absent, and per the documentation that 
is the only relevant option.  The error is emitted on gdal 3.8.4, but we have 
another environment with 3.4.3 and there’s no error.  On the 3.8.4 environment, 
we’re using internal libtiff w/ JXL support, if helpful.

Best,
Jesse
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to