# NOT RUN {
# build the example database
makeExampleDB(until = "regDataseries")
# The GADM dataset comes as *.zip archive
regGeometry(nation = "NAME_0",
gSeries = "gadm",
level = 1,
layer = "example_geom1",
nameCol = "NAME_0",
archive = "example_geom.7z|example_geom1.gpkg",
archiveLink = "https://gadm.org/",
nextUpdate = "2019-10-01",
updateFrequency = "quarterly",
update = TRUE)
# The second administrative level in GADM contains names in the columns
# NAME_0 and NAME_1
regGeometry(nation = "NAME_0",
gSeries = "gadm",
level = 2,
layer = "example_geom2",
nameCol = "NAME_0|NAME_1",
archive = "example_geom.7z|example_geom2.gpkg",
archiveLink = "https://gadm.org/",
nextUpdate = "2019-10-01",
updateFrequency = "quarterly",
update = TRUE)
# }
Run the code above in your browser using DataLab