Subscribe to this thread
Home - General / All posts - Importing and Linking KEA format raster files
danb


1,990 post(s)
#23-Dec-22 04:00

Has anyone successfully managed to import LiDAR DEM/DSM data in KEA format?

I downloaded some data in KEA format from the LINZ Data Service:

https://data.linz.govt.nz/layer/107436-taranaki-lidar-1m-dem-2021/

I chose KEA format as this was the only format which would fit the whole dataset within the download limit. I saw that KEA is supported by GDAL and so installed GDAL 303 as per the topics in the manual and set the PATH system variable. Unfortunately however I can't get them to load with the log reporting:

2022-12-23 16:53:13 -- Load library: C:\Program Files\GDAL\gdal303.dll

2022-12-23 16:53:14 *** (import) `C:\Users\Owner\Downloads\lds-taranaki-lidar-1m-dem-2021-KEA\DEM_BG31_2021_1000_2217.kea' not recognized as a supported file format.

2022-12-23 16:53:14 -- Import: C:\Users\Owner\Downloads\lds-taranaki-lidar-1m-dem-2021-KEA\DEM_BG31_2021_1000_2217.kea (0.559 sec)

I am setting the import dialogue type to GDAL/OGR and selecting the .KEA file but no joy.

Sample file attached and any thoughts welcome.

Attachments:
DEM_BG30_2021_1000_5047.kaw
DEM_BG30_2021_1000_5047.kea
DEM_BG30_2021_1000_5047.xml


Landsystems Ltd ... Know your land | www.landsystems.co.nz

Dimitri


7,193 post(s)
#23-Dec-22 06:11

The GDAL doc on KEA at https://gdal.org/drivers/raster/kea.html says that "A software library, libkea, is used to access the file format."

Could it be your GDAL installation was not compiled with libkea?

danb


1,990 post(s)
#23-Dec-22 19:35

Quite possibly Dimitri, I will have a bit more of a look today.

I do notice that the relevant folder of the GDAL install I undertook does contain the KEA dll

I'll do a bit more digging.


Landsystems Ltd ... Know your land | www.landsystems.co.nz

danb


1,990 post(s)
#23-Dec-22 20:08

This was the one I downloaded and installed (https://www.gisinternals.com/archive.php):

(See attached image)

The CORE package

Attachments:
GDAL.png


Landsystems Ltd ... Know your land | www.landsystems.co.nz

Dimitri


7,193 post(s)
#24-Dec-22 07:19

One thing to try is to usegdal_translate to convert the KEA format file into something else, like GeoTIFF. If GDAL can't do that within itself, then there's something wrong with how GDAL is set up to do KEA.

rk
587 post(s)
#27-Dec-22 10:14

Try this:

Temporarily move gdal_KEA.dll away. Then GDAL treats the file as HDF5Image and hopefully imports it.

I have gdal 3.3.3 from osgeo4w without gdal_KEA.dll plugin and I got something.

Attachments:
mfd_import_KEA.png

danb


1,990 post(s)
#28-Dec-22 19:00

Thanks Rivo, I haven't quite ventured back to work yet, but have got as far as turning the computer on so will give this a go in the next couple of days. Much appreciated.


Landsystems Ltd ... Know your land | www.landsystems.co.nz

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.