<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="DejaVu Sans Mono" size="2">I recently compiled a minimal
GDAL (3.10) with HDF4 support (using HDF 4.3.0) for processing
MODIS L1B data. However, the resulting command line tools cannot
understand the format. Perhaps I am doing something wrong, or
missing something important, or both.<br>
<br>
Do I understand correctly that MODIS L1B in HDF-EOS format should
be readable by GDAL compiled with HDF4 support without additional
libraries?<br>
<br>
Thanks for any hint.<br>
<br>
HernĂ¡n<br>
<br>
<br>
<br>
Workflow:<br>
<br>
Build HDF4 (4.3.0)<br>
<br>
./configure --prefix=/home/hernan/project --disable-netcdf
--disable-fortran --enable-shared --disable-static<br>
make<br>
make install<br>
<br>
<br>
Build GDAL (3.10) with HDF4 support<br>
ccmake , make, ... etc<br>
<br>
/home/hernan/project/bin/gdal-config --formats<br>
MEM vrt HDF4 MEM<br>
<br>
<br>
<br>
Test<br>
<br>
/home/hernan/project/bin/gdalinfo
MOD02QKM.A2024307.1325.061.2024308012941.hdf<br>
ERROR 4: `MOD02QKM.A2024307.1325.061.2024308012941.hdf' not
recognized as being in a supported file format.<br>
gdalinfo failed - unable to open
'MOD02QKM.A2024307.1325.061.2024308012941.hdf'.<br>
<br>
<br>
<br>
Testdata if someone wants to try (warning: 150 Mb!):<br>
<a class="moz-txt-link-freetext" href="https://www.geonatura.se/lastkaj/index.php/s/TCS35pjANsEtSyV">https://www.geonatura.se/lastkaj/index.php/s/TCS35pjANsEtSyV</a><br>
</font>
</body>
</html>