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

UndefVarError 'read_raster' not defined #133

Closed
Zitronenschale opened this issue Aug 30, 2023 · 4 comments · Fixed by #134
Closed

UndefVarError 'read_raster' not defined #133

Zitronenschale opened this issue Aug 30, 2023 · 4 comments · Fixed by #134

Comments

@Zitronenschale
Copy link

Good morning,
I am trying to run the Omniscape example of this page:

https://docs.circuitscape.org/Omniscape.jl/latest/examples/

unfortunately I always get this error when loading the raster file:

julia> land_cover, wkt, transform = Omniscape.read_raster("C:/Users/keinp/nlcd_2016_frederick_md", Float64)
ERROR: UndefVarError: read_raster not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base.jl:31
[2] top-level scope
@ REPL[19]:1

The previous commands are executed. Can anyone help me?

Translated with www.DeepL.com/Translator (free version)

@digital-carver
Copy link

Based on discussions on Zulip, this is the result of version compatibility issues leading to Omniscape 0.4.0 being installed. Omniscape only allows version 0.8 of ArchGDAL, while Circuitscape wants the more recent version 0.10 of ArchGDAL.

Would it be possible to bump up the compat bounds for ArchGDAL in Omniscape?

@vlandau
Copy link
Member

vlandau commented Aug 31, 2023

Sure, I can update the compat for ArchGDAL and other packages. I'll work on getting this done soon, but feel free to ping me again if it's not done by the end of the day on Sunday. Thanks!

@digital-carver
Copy link

gentle ping @vlandau

@vlandau
Copy link
Member

vlandau commented Sep 4, 2023

I just released a new version with updated compat entries. Please ensure you're using Julia 1.9, update Omniscape, and try the examples again. If you end up running into the same error. Feel free to reopen this issue.

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

Successfully merging a pull request may close this issue.

3 participants