On mercredi 7 août 2019 20:36:48 CEST Joe Lee wrote: > Hi, Even! > > I tested it and your new code works very well. > Thank you for adding this new feature so quickly! > > Now I wish /vsis3 work on HDF4 like HDF5. > That would be perfect because I tried /vsicurl as you suggested in [1] but > it did not work.
Unfortunately libhdf has no pluggable I/O layer, so only the vsipreload trick can be used. Using a solution like https://github.com/s3fs-fuse/s3fs-fuse should also work. I just successully tried on Ubunty 16.04 the following: g++ -std=c++11 -Wall -fPIC port/vsipreload.cpp -shared -o vsipreload.so -Iport -L. -L.libs -lgdal LD_PRELOAD=vsipreload.so gdalmdiminfo /vsicurl/https://download.osgeo.org/gdal/data/hdf4/REANALYSIS_1999217.hdf LD_PRELOAD=vsipreload.so gdalmdimtranslate /vsicurl/https://download.osgeo.org/gdal/data/hdf4/REANALYSIS_1999217.hdf out.nc LD_PRELOAD=vsipreload.so gdalmdiminfo /vsis3/{my_bucket}/REANALYSIS_1999217.hdf Even -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
