<div dir="ltr">doc update PR in <a href="https://github.com/OSGeo/gdal/pull/9220">https://github.com/OSGeo/gdal/pull/9220</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 9, 2024 at 3:38 PM Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] <<a href="mailto:jesse.r.meyer@nasa.gov">jesse.r.meyer@nasa.gov</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 class="msg-552437623202167026">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-552437623202167026WordSection1">
<p class="MsoNormal">We can work with the Uint16 case. These dtype limitations should be listed on the gtiff docs presumably.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentcolor currentcolor;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>><br>
<b>Date: </b>Friday, February 9, 2024 at 9:37 AM<br>
<b>To: </b>"Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC]" <<a href="mailto:jesse.r.meyer@nasa.gov" target="_blank">jesse.r.meyer@nasa.gov</a>><br>
<b>Cc: </b>"<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>" <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<b>Subject: </b>[EXTERNAL] Re: [gdal-dev] GeoTiff JXL sample format & bits per sample restrictions?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<table border="1" cellspacing="0" cellpadding="0" align="left" style="border:1.5pt solid black">
<tbody>
<tr>
<td width="100%" style="width:100%;border:medium;background:rgb(255,235,156);padding:3.75pt">
<p class="MsoNormal">
<b><span style="font-size:10pt;color:black">CAUTION:</span></b><span style="color:black">
</span><span style="font-size:10pt;color:black">This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC.</span><span style="color:black">
</span><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
<br>
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">JXL in tiff should support the 2 band case correctly. What is not supported here is the int16 datatype. Only uint8, uint16 and float32 are supported.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">TB<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Feb 9, 2024 at 3:32 PM Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-width:medium medium medium 1pt;border-style:none none none solid;border-color:currentcolor currentcolor currentcolor rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal">We are trying to convert a 2 band int16 ZSTD compressed geotiff to JXL compression. However for each band the following error message is given “ERROR 1: GetJXLDataType:Unsupported
combination of SampleFormat and BitsPerSample”.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">On GDAL 3.8.3, released 2024/01/04. JXL v0.9.2<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">gdal_translate -ot int16 -co "COMPRESS=JXL" -co "NUM_THREADS=8" -co "TILED=YES" -co "SPARSE_OK=YES" -<u></u><u></u></p>
<p class="MsoNormal">co "INTERLEAVE=BAND" -co "JXL_LOSSLESS=YES" in.tif out_JXL.tif<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">The docs state an encode limitation for GDAL < 3.6 wrt interleave and band counts. We’re not subject to that, unless there’s a bug, but I do wonder if we have nonetheless gone
off the support path with band interleave with 2 bands?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Jesse<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div></blockquote></div>