[gdal-dev] netCDF with virtual file system (/vsicurl/) not working

Even Rouault even.rouault at spatialys.com
Wed Feb 2 02:15:04 PST 2022


The issue with userfaultfd not working with modern Linux kernels was 
fixed in 3.4.0 per 
https://github.com/OSGeo/gdal/pull/4508/commits/f861fd3fc6826ab753e0155f15507494d54f7ecb

/vsicurl/ on a netCDF file, with the netCDF driver, cannot work on 
non-Linux systems. The HDF5 driver will then trigger.

Le 02/02/2022 à 10:01, Stefan Blumentrath a écrit :
>
> Hi,
>
> And thanks for your swift reply, Jukka.
>
> I tried different versions on Linux (Ubuntu: ubuntugis-stable and 
> ubuntugis-unstable):
>
> 3.3.2, 3.4.0
>
> Fedora:
>
> 3.3.2
>
> On Windows the latest OSGeo4W provided version:
>
> 3.4.1 (and there it does not work)
>
> On my Fedora box however, I now compiled GDAL 3.4.1, there it seems to 
> work again…
>
> Cheers
>
> Stefan
>
> *From:*Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
> *Sent:* onsdag 2. februar 2022 09:49
> *To:* Stefan Blumentrath <Stefan.Blumentrath at nina.no>; gdal-dev 
> <gdal-dev at lists.osgeo.org>
> *Subject:* Re: netCDF with virtual file system (/vsicurl/) not working
>
> Hi,
>
> What is your GDAL version? Check with "gdalinfo --version"
>
> -Jukka Rahkonen-
>
> *Lähettäjä:*gdal-dev <gdal-dev-bounces at lists.osgeo.org> *Puolesta 
> *Stefan Blumentrath
> *Lähetetty:* keskiviikko 2. helmikuuta 2022 10.36
> *Vastaanottaja:* gdal-dev <gdal-dev at lists.osgeo.org>
> *Aihe:* [gdal-dev] netCDF with virtual file system (/vsicurl/) not working
>
> Hi,
>
> I have been using GDAL to access online data sources in netCDF 
> successfully.
>
> With Ubuntu 20.04, this unfortunately no longer works with the netCDF 
> driver.
>
> Here is a reproducible example:
>
> gdalinfo -if netCDF 
> /vsicurl/https://nbstds.met.no/thredds/fileServer/NBS/S2A/2021/02/28/S2A_MSIL1C_20210228T103021_N0202_R108_T35WPU_20210228T201033_DTERRENGDATA.nc
>
> The original error message (before working around the HDF5 driver) has 
> been that permissions for the userfaultfd system call were denied. But 
> if I specify the netCDF driver, the format is not recognized. 
> Downloading the dataset and opening It locally works.
>
> I saw some possibly relevant changes:
>
> https://github.com/OSGeo/gdal/pull/4508 
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOSGeo%2Fgdal%2Fpull%2F4508&data=04%7C01%7CStefan.Blumentrath%40nina.no%7C712e34b2580542465b6308d9e628e428%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637793885589031036%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=8YXTXn0Pc7WWlTK5F6ECh1PocPjazxOahHihakmjpU8%3D&reserved=0>
>
> https://github.com/OSGeo/gdal/issues/2412 
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOSGeo%2Fgdal%2Fissues%2F2412&data=04%7C01%7CStefan.Blumentrath%40nina.no%7C712e34b2580542465b6308d9e628e428%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637793885589031036%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=9sQzMAyPA54CSZVIdvqkiK0RrFLeainC3FYka0tfPEQ%3D&reserved=0>
>
> Any hint on how to get that functionality back would be very much 
> appreciated!
>
> Cheers
>
> Stefan
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220202/cb9aa884/attachment-0001.html>


More information about the gdal-dev mailing list