[gdal-dev] Compiling GDAL with HDF5 Support

Etienne Tourigny etourigny.dev at gmail.com
Thu Aug 30 10:29:28 PDT 2012


are you using the gdalinfo that you installed? You can find this out with
which gdalinfo

to make sure that hdf5 support was builtin, try gdalinfo --formats

also when you did configure, did it give you any errors about hdf5?

and try gdalinfo --debug on <file.hdf>

Etienne

On Thu, Aug 30, 2012 at 12:10 PM, elliott <elliott at cpi.com> wrote:
> Hello,
>
> I have configured gdal 1.9.1 as follows:
>
> ./configure --with-python --with-hdf4=/home/hdf-4.2.6/hdf4
> --with-hdf5=/home/hdf5-1.8.9/hdf5
>
> It looks like everything builds successfully.  However, when I try to use
> gdalinfo on a MODIS Land Cover HDF-EOS version 5 file, I get the following
> error:
>
>> gdalinfo MCD12Q1.A2009001.h28v05.005.2011059194456.hdf
>  ERROR 4: 'MCD12Q1.A2009001.h28v05.005.2011059194456.hdf' not recognized as
> a supported file format.
>
> gdalinfo failed - unable to open
> 'MCD12Q1.A2009001.h28v05.005.2011059194456.hdf'.
>
> Any ideas on what I am doing wrong?
>
> Thanks
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list