<html><head></head><body><div>
<meta charset="utf-8">
<div id="compose-body-wrapper" dir="auto"><div dir="auto"><div dir="auto">Hi Even,</div><div dir="auto">I checked and it doesn't seem that GDAL was built with KEA support. I built it with aptitude so my input was minimal. The installation included:</div><div dir="auto">$ sudo apt install gdal-bin libgdal-dev python3-gdal </div><div dir="auto">Should I install any other package or would the solution involve installing GDAL from source?</div><div dir="auto">[Info: the system is running Ubuntu 20.04 and it returns: </div><div dir="auto">$ gdalinfo --version</div><div dir="auto">GDAL 3.0.4, released 2020/01/28]</div><div dir="auto">Thanks,</div><div dir="auto">AFernandez</div><div><br></div></div></div><div class="replyHeader" dir="auto">Even Rouault wrote:</div><br><br><div><blockquote cite="mid:c085d0c2-f103-3db8-519a-0d8dae0676f3@spatialys.com" type="cite" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><br>
</p>
<div class="moz-cite-prefix">Le 14/02/2023 à 18:46, afernandez a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:abe1081ad06a8.9a366de92553e@odyhpc.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>
<meta charset="utf-8">
<div id="compose-body-wrapper" dir="auto">
<div dir="auto">
<div dir="auto">Hello Even,</div>
<div dir="auto">Thank you for the quick reply. I'll try
using GDAL subdatasets later this afternoon (although I'm
not sure if this solution would become a bit messy for
hundreds of files). The format KEA is completely new to
me. I was able to install KEALib but found only one source
of information online
(<a class="moz-txt-link-freetext" href="https://gdal.org/drivers/raster/kea.html">https://gdal.org/drivers/raster/kea.html</a>). To start
somewhere, I simply modified the first 2 lines of the
script to:</div>
<div dir="auto"> driver_name = 'KEA'</div>
<div dir="auto"> driver =
gdal.GetDriverByName(driver_name)</div>
<div dir="auto">However, it doesn't pick it up (driver
returns 'None'). Ideally there would be some example that
I could follow but I might have to do this piecewise in
the meantime. <br>
</div>
</div>
</div>
</div>
</blockquote>
<p>You need to tune your build so it finds KEALib. See
<a class="moz-txt-link-freetext" href="https://gdal.org/development/building_from_source.html#kea">https://gdal.org/development/building_from_source.html#kea</a> for
related CMake options. "grep <span id="cmdoption-arg-gdal-use-kea"></span><span class="sig-name
descname"><span class="pre">GDAL_USE_KEA</span></span><span class="sig-prename descclassname"><span class="pre">
CMakeCache.txt" should report ON if things are proprerly
configured. Once the driver is available in your GDAL build,</span></span>
just changing the name of the driver should be sufficient</p>
<p>See also
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/build-deps.sh#L30">https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/build-deps.sh#L30</a>
for an example of a CI configuration that builds with libkea
support (not much to do if you install it in a standard location
looked for by cmake)<br>
</p>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</blockquote></div>
</div></body></html>