adapt_rpg.Rd
The following treatment are performed:
the projection is set to projection
the geometry is made valid
flood exposition is set through intersection with eaip
the output is saved at department level as rds in given destination
adapt_rpg(
origin,
destination,
archive,
export = "rds",
scheme = NULL,
department = NULL,
dep_path = NULL,
eaip_path = NULL,
projection = 4326,
retrieve = FALSE,
verbose = FALSE
)
character, path to the directory where archive are stored
character, path to the directory where results should be saved
character, vector of archive to be adpated
character, option for export format of the results
data.frame, how archive variables should be treated
character, vector of department that should be treated
character, path to the directory where departments data are stored
character, path where eaip archives should be find
integer or object of type CRS giving projection
logical, should the result be returned
logical, should the function give some sumup informations.
if retrieve = TRUE, sf object of adapated data stored in archive.
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)
}