<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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>
  </body>
</html>