<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
font-size:8.5pt;
font-family:Menlo;
color:black;}
span.s1
{mso-style-name:s1;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;
font-family:"Aptos",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">We recently began seeing the following error (which doesn’t seem to produce incorrect output images)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="p1"><span class="s1">ERROR 1: _TIFFVSetField:/vsimem/gtiff/thread/job/0x1f5d0970: Bad value 4 for "ExtraSamples" tag</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">when creating a geotif image from C++ with creation options:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#2D2A2E"><i><span style="font-size:9.0pt;font-family:Menlo;color:#78DCE8;mso-ligatures:none">char</span></i><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#FF6188;mso-ligatures:none">*</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">disk_create_options</span><i><span style="font-size:9.0pt;font-family:Menlo;color:#FF6188;mso-ligatures:none">[]</span></i><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#FF6188;mso-ligatures:none">=</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">{"</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">COMPRESS=ZSTD</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">",</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">"</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">ZSTD_LEVEL=1</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">",</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">"</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">INTERLEAVE=BAND</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">",</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">"</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">Tiled=YES</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">",</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">"</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">NUM_THREADS=ALL_CPUS</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">",</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">"</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">SPARSE_OK=True</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">",</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">"</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">PREDICTOR=3</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">",</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none">
</span><span style="font-size:9.0pt;font-family:Menlo;color:#AB9DF2;mso-ligatures:none">0</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">};</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We are not explicitly using the vsimem driver, only the driver returned by:<o:p></o:p></p>
<p class="MsoNormal" style="line-height:13.5pt;background:#2D2A2E"><span style="font-size:9.0pt;font-family:Menlo;color:#A9DC76;mso-ligatures:none">GDALGetDriverByName</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">("</span><span style="font-size:9.0pt;font-family:Menlo;color:#FFD866;mso-ligatures:none">GTiff</span><span style="font-size:9.0pt;font-family:Menlo;color:#939293;mso-ligatures:none">")</span><span style="font-size:9.0pt;font-family:Menlo;color:#FCFCFA;mso-ligatures:none"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal">Jesse<o:p></o:p></p>
</div>
</body>
</html>