The following treatment are performed: - the projection is set to projection - the geometry is made valid - the output is saved as rds in given destination - for COMMUNE layer, the output is saved at department level

adapt.admin_express(
  origin,
  destination,
  archive,
  export = "rds",
  scheme = floodam.data::scheme_admin_express,
  layer = NULL,
  projection = 4326,
  retrieve = FALSE,
  verbose = FALSE
)

Arguments

origin

character, path to the directory where archive are stored

destination

character, path to the directory where results should be saved

archive

character, vector of archive to be adpated

export

character, option for export format of the results

scheme

data.frame, how archive variables should be treated

layer

character, wchi layer should be treated

projection

integer or object of type CRS giving projection

retrieve

logical, should the result be returned

verbose

logical, should the function give some sumup informations.

Value

if retrieve = TRUE, sf object of adapated data stored in archive.

Author

Victor Champonnois et Frédéric Grelot

Examples


if (FALSE) {
origin = ""
destination = tempdir()
archive = "RPG_2-0__SHP_LAMB93_FR-2018_2018-01-15.7z"
result = adapt_rpg(archive, origin, destination, verbose = TRUE, retrieve = TRUE)
}