GADM.jl icon indicating copy to clipboard operation
GADM.jl copied to clipboard

DataDeps warning when running `get`

Open asinghvi17 opened this issue 10 months ago • 1 comments

GADM.get("JPN") # first run

yields a warning:

┌ Warning: Checksum not provided, add to the Datadep Registration the following hash line
│   hash = "a7d0955dfd9215d6b21cff3f5b7bf09b02c3b64290e7b6ac1b357b7789f45e03"
└ @ DataDeps ~/.julia/packages/DataDeps/Y2lje/src/verification.jl:44

I get similar errors for every other country. This should probably be resolved in the registration block here:

https://github.com/JuliaGeo/GADM.jl/blob/606b61a9ce6fa7b3e4258ea12e60aa18bf30c3ba/src/GADM.jl#L64-L69

asinghvi17 avatar Apr 17 '24 02:04 asinghvi17

If the hash is fixed per ID, then a dictionary can be introduced in the code for lookup. PRs are welcome.

juliohm avatar Apr 17 '24 10:04 juliohm