Open felixcremer opened 2 weeks ago
Over at GeoArrays, I've used startswith(fn, "/vsi") || occursin(":", fn) || isfile(fn) || error("File not found.")
, as GDAL can read non-local filepaths.
Rasters has something similar, we check all the possible /vsi**
https://github.com/rafaqz/Rasters.jl/blob/main/ext%2FRastersArchGDALExt%2Fgdal_source.jl#L11
When I am using
AG.read("nonexisting.tif") do r
with some ArchGDAL functions I get a confusing GDALError about some Pointer being NULL. I would have expected an error indicating that the there does not exist a file in that path which happens on a plain AG.read.I would like to get an error like this also for the do block.