Whenever I try to open a kea file in TuiView, it throws me an error stating "NoneType object has no attribute GetOverviewCount".
What should I do to fix it?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
This error means that the file exists but GDAL can't open the image data, in the case of KEA files because it is being read as sub-datasets using the HDF5 driver rather than the KEA one.
As it looks like you are using conda I would recommend updating to the latest builds from conda-forge and installing in a separate environment using the following commands:
conda create -n tuiview_env -c conda-forge tuiview source activate tuiview_env
The latest version of GDAL from conda-forge is built with KEA support so setting
GDAL_DRIVER_PATH isn't required. A new environment is recommended because the
activate script also sets other environmental variables used by GDAL (e.g.,
This will also work on Mac and Windows, although for Windows
source isn't required when activating a new environment.