[gdal-dev] vsicurl and HDF5

Paolo Corti pcorti at gmail.com
Thu Jan 5 10:10:12 PST 2023


On Thu, Jan 5, 2023 at 6:03 PM Even Rouault <even.rouault at spatialys.com> wrote:
>
> Paolo,
>
> Le 05/01/2023 à 17:56, Paolo Corti a écrit :
> > Hi all
> >
> > Do you know if I can read HDF5 files with vsicurl?
> > I made a few tests, but I am getting this error, so I was wondering it
> > it is even possible:
>
> yes this is possible. If you get the error message you mention, it means
> that the HDF5 driver is not used, but rather the netCDF one, since the
> Linux userfaultfd system call is the trick used by the netCDF driver to
> allow /vsicurl/ usage. Perhaps you are running from a container (like
> Docker) that doesn't enable that system call by default.  With Docker,
> you might need to start your container with --privileged=true
>
> If you have the HDF5 driver available, it is better integrated with the
> VSI virtual file systems and that shoud work on any operating systems,
> whereas /vsicurl/ with the netCDF driver can only work with Linux
>

Thanks Even!
I just tried with the osgeo GDAL container, and it is working, many thanks!
Previously I tried to run it from OSX, and I got that error.

Thanks also to Joe for testing that :)


--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
#drt3jc1


More information about the gdal-dev mailing list