JuliaGeo / GADM.jl

A Julia package for obtaining geographical data from the GADM dataset
https://gadm.org
MIT License
38 stars 4 forks source link

DataDeps warning when running `get` #65

Closed asinghvi17 closed 3 months ago

asinghvi17 commented 6 months ago
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

juliohm commented 6 months ago

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