download-data.Rmd
floodam.data is fitted to download from http://data.cquest.org (or http://212.47.238.202). It is a very good idea to have a view of this site, how it is organized, what type of data are stored. There are plenty of things that are not downloaded by floodam.data which shall be read and understood before using data coming from this site.
For instance, some of the data have been modified by the maintainer of the site, with explanations on the processes performed, with logs on how the processes resulted. This is a very valuable information.
Another possible source is IGN: https://geoservices.ign.fr/documentation/diffusion/telechargement-donnees-libres.html
Even better: ftp repository
Two possibilities:
library(floodam.data)
Typically floodam.data functions use two types of indications:
where are located the data to be downloaded, this is specified by the parameter origin
where should be stored the data, this is specified by the parameter destination
It is a good idea to give some general indications for origin and destination that are specified more precisely when a specific call is made to a download function.
origin = "http://data.cquest.org"
destination = "temp/floodam-data/original"
rpg stands for registre parcellaire graphique. Those data are maintained by the French Minsitry of Agriculture.
download.rpg(
origin = file.path(origin, "registre_parcellaire_graphique"),
destination = file.path(destination, "rpg"),
year = as.character(2010:2018)
)
sirene stands for Sirene. Those data are maintained by INSEE. They are processed by cquest to have information on localization.
download.geo_sirene(
origin = file.path(origin, "geo_sirene"),
destination = file.path(destination, "sirene"),
month = create.month("2018-10", "2020-03")
)