-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
The main problem is the libs based on opening files with fsspec
won't work properly with CloudPaths
.
They will call fspath
to resolve it (instead of str()) and therefore the file called will be cached (this is not exaclty what we want, and this will be done silently)
For single files like tif
this will be not optimal but will work (your example)
But for nested files likes VRT, this will crash as only the header is cached and not the relative files. This will break the paths inside the VRT.
Note that GDAL (and therefore rasterio) can read VRT stored on the cloud, and this is the expected behavior.
A little example:
vrt = AnyPath("https://s3.unistra.fr/merge_32-31.vrt")
rasterio.open(str(vrt)) # will work
rasterio.open(vrt) # will fail for the wrong reason, saying that the files linked inside the VRT don't exist
Originally posted by @remi-braun in #96 (comment)
remi-braun
Metadata
Metadata
Assignees
Labels
No labels