[gdal-dev] Problem with HDF5 CSK files and .hdr files generated by ENVI

Even Rouault even.rouault at spatialys.com
Mon Sep 15 05:48:26 PDT 2014


Selon vf <victor.fomin.1 at gmail.com>:

>
> Dear GDAL developers,
>
> I constate that GDAL (e.g. gdalinfo) fails to open correctly CSK hdf5 files
> which have been read before by ENVI software (and .hdr file is generated
> near .h5 source file). In this case GDAL uses driver "ENVI/ENVI .hdr
> Labelled" instead of HDF5 if the file is not present. Suppression of the
> generated .hdr file can fix the problem. Do you think that it is the only
> solution ?

Victor,

You can define GDAL_SKIP=ENVI as environment variable as well to avoid the ENVI
driver to be used at all.
We could/should probably register the ENVI driver in last, so to be sure it is
used only after all other drivers have been tried.
Could you paste the content of the .hdr file ? It is a bit strange that such a
file is generated without a BIL/BIP/BIQ image file that matches it (isn't there
any other file next to the .hdr and .h5 file that would have been generated by
ENVI?). There are perhaps some keywords in that .hdr file that would show it
should be ignored.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list