Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading a VSI URL returns File not found. #177

Open
fabricebrito opened this issue Jan 28, 2025 · 1 comment
Open

Reading a VSI URL returns File not found. #177

fabricebrito opened this issue Jan 28, 2025 · 1 comment

Comments

@fabricebrito
Copy link

I'm doing:

GeoArrays.read("/vsicurl/https://github.com/OSGeo/gdal/blob/master/autotest/alg/data/2by2.tif?raw=true")

And getting:

File not found.

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] read(fn::String; masked::Bool, band::Nothing)
   @ GeoArrays ~/.julia/packages/GeoArrays/S54xA/src/io.jl:4
 [3] read(fn::String)
   @ GeoArrays ~/.julia/packages/GeoArrays/S54xA/src/io.jl:3
 [4] top-level scop

Using version 0.9.3

Am I missing something obvious?

@evetion
Copy link
Owner

evetion commented Jan 28, 2025

Hmm, I can't reproduce on macOS:

julia> GeoArrays.read("/vsicurl/https://github.com/OSGeo/gdal/blob/master/autotest/alg/data/2by2.tif?raw=true")
2x2 Matrix{Float64} with AffineMap([0.5 0.0; 0.0 -0.5], [0.0, 1.0]) and undefined CRS

Can you check what's in your ~/.julia/packages/GeoArrays/S54xA/src/io.jl? And whether you really have 0.9.3 there? I'm at a loss otherwise what this can be. Your error comes from https://github.com/evetion/GeoArrays.jl/blob/master/src/io.jl#L16, which literally starts with a negation when /vsi occurs in the url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants