get_geopackage: Get geopackage format map of a specific country from GADM.

Description Usage Arguments Value Examples

View source: R/get_map.R

Description

Get geopackage format map of a specific country from GADM.

Usage

1
get_geopackage(country, version = "gadm3.6", layer)

Arguments

country

Three-letter ISO country code. Corresponding three-letter ISO code for each country can be found in the list_countries dataset.

version

A character vector specifying the GADM version from which to get the geopackage download from. Default is gadm3.6 for current version of GADM.

layer

A numeric value specifying which layer from geopackage to get. A layer corresponds to the different administrative units of the specific country where 0 is country-level, 1 is the first administrative level (usually region, state, province), 2 is the second administrative level (usually district, locality, municipality) and so on and so forth.

Value

SpatialPolygonsDataFrame of the specified country map layer.

Examples

1
get_geopackage(country = "AFG", layer = 0)

SpatialWorks/gadmr documentation built on Sept. 1, 2019, 12:11 a.m.