[QGIS-Developer] Problems loading and using GDALinfo on hdf5 files (only on Windows)

Alexandre Neto senhor.neto at gmail.com
Wed Nov 13 02:17:04 PST 2019


Hi,

I am getting problems in reading a HDF5 file on windows. I have tried with
3.4 and 3.10. Also tested with the most recent version of GDAL 3.0.2 and
the previous version.
All the HDF drivers are active.
 When I grad and drop the file it gives me the following error:

2019-11-13T10:04:03     CRITICAL    Invalid Data Source :
C:/Users/boundless/Desktop/NEON_D02_BLAN_DP3_755000_4329000_reflectance.h5
is not a valid or recognized data source.

If I try to use gdalinfo on the same file I get the following:

C:\Users\boundless\Desktop>gdalinfo
NEON_D02_BLAN_DP3_755000_4329000_reflectance.h5
HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 0:
  #000: C:\src\osgeo4w\hdf5\src\H5P.c line 253 in H5Pcreate(): not a
property list class
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 0:
  #000: C:\src\osgeo4w\hdf5\src\H5Pfapl.c line 829 in H5Pset_driver(): not
a property list
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 0:
  #000: C:\src\osgeo4w\hdf5\src\H5F.c line 509 in H5Fopen(): unable to open
file
    major: File accessibilty
    minor: Unable to open file
  #001: C:\src\osgeo4w\hdf5\src\H5Fint.c line 1400 in H5F__open(): unable
to open file
    major: File accessibilty
    minor: Unable to open file
  #002: C:\src\osgeo4w\hdf5\src\H5Fint.c line 1513 in H5F_open(): unable to
retrieve VFL class
    major: File accessibilty
    minor: Can't get value
  #003: C:\src\osgeo4w\hdf5\src\H5FD.c line 378 in H5FD_get_class(): can't
find object for ID
    major: Object atom
    minor: Unable to find atom information (already closed?)
HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 0:
  #000: C:\src\osgeo4w\hdf5\src\H5P.c line 1518 in H5Pclose(): not a
property list
    major: Invalid arguments to routine
    minor: Inappropriate type
ERROR 4: `NEON_D02_BLAN_DP3_755000_4329000_reflectance.h5' not recognized
as a supported file format.
gdalinfo failed - unable to open
'NEON_D02_BLAN_DP3_755000_4329000_reflectance.h5'.


On Linux it works fine, both loading the file on QGIS, and using gdalinfo.
I thought it could be something to do with GDAL version since linux version
normally lags behind, so I have tried the conda installation (which has
gdal 3.0.2), but it worked just fine. So this means it must be a windows \
OSGeo4W thing, no?

Bug? Should I open a ticket?

Thanks,

Alexandre Neto


, both with gdal 3.0.2), but not on Linux. I though iot as
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191113/d271d309/attachment.html>


More information about the QGIS-Developer mailing list