How does QGIS read in projection information from hdf5 files? Projection info not recognized

2.3k views Asked by At

When i bring an HDF5 file into QGIS that contains raster information, the data visually appear however spatially, they are not projected properly. QGIS does not read the spatial CRS information embedded in the hdf5 file.

Does anyone know what QGIS looks for in terms of syntax and attributes (and where) when it opens an HDF5 file? I'd like to adjust my HDF5 files so that the CRS information reads and QGIS can project the data.

Thank you for any direction Leah

1

There are 1 answers

1
Rutger Kassies On

According to the GDAL documentation for the HDF5 driver there is no standard way of doing so.

But something worth trying is to peek at a file which does work for you. Unfortunately i don't have a GDAL driver which can write HDF5 files, but i can create a HDF4 file. If i convert a (georeferenced) Geotiff to HDF4 with GDAL, QGIS reads it correctly, with CRS information etc.

GDAL creates four global attributes, it might be worth trying to create those in your HDF5 file. I'm not sure if all of them are necessary, the 'Signature' doesn't seem crucial. Though it really depends on the implementation of HDF5 in QGIS, it could be completely different compared to HDF4.

enter image description here