Returns an administrative geospatial data source. The coordinate reference system is 'BD72 / Belgian Lambert 72' (EPSG-code 31370).

read_admin_areas(
  file = file.path(locate_n2khab_data(), c("10_raw/flanders", "10_raw/provinces",
    "10_raw/sac")),
  dsn = c("flanders", "provinces", "sac")
)

Arguments

file

The absolute or relative file path of the data source. The default follows the data management advice in the vignette on data storage (run vignette("v020_datastorage")). It uses the first n2khab_data folder that is found when sequentially climbing up 0 to 10 levels in the file system hierarchy, starting from the working directory.

dsn

A string, conforming to one of the data source names listed under Usage. Considering the default values of the path and file arguments, it is recommended to just use this argument. Defaults to "flanders".

Different data sources are handled differently by the function. The dsn argument states which data source is requested. It is also used to determine file if that argument is not specified, in order to select the right data file(s) from the n2khab_data folder.

Value

A Simple feature collection of geometry type MULTIPOLYGON or POLYGON.

Details

See section Usage to see which N2KHAB data sources are available. You get a list of the data source names and related information with XXXXXXXXX. You are referred to the raw N2KHAB-data collection at Zenodo to learn more about these data sources.

Examples

if (FALSE) {
flanders <- read_admin_areas(dsn = "flanders")
provinces <- read_admin_areas(dsn = "provinces")
sac <- read_admin_areas(dsn = "sac")
}