Skip to content

Reading a VSI URL returns File not found. #177

Open
@fabricebrito

Description

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?

Activity

evetion

evetion commented on Jan 28, 2025

@evetion
Owner

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Reading a VSI URL returns File not found. · Issue #177 · evetion/GeoArrays.jl