This vignette provides a step-by-step guide to processing residential
buildings in the BD-Topo® using the floodam.data package.
The BD-Topo® is a comprehensive database of geographical information
from France. This process involves downloading the data, extracting
relevant residential building and dwelling information, analyzing it,
summarizing the results, and generating reports.
Before you begin, ensure that you have the following:
Define the paths to the directories where the data will be downloaded and processed. Important: Update these paths to match your local file system.
Download the BD Topo data for each department and extract the vintage information. Here we use department 34 (Hérault) as an example:
download_info = floodam.data::download_bd_topo(
file.path(path_bd_topo, vintage),
department = 34,
type = "GPKG"
)
vintage = floodam.data::analyse_archive(download_info[["task"]][2])["vintage"]This step downloads the data and stores it in the specified directory.
Extract the building data from the downloaded archive:
Extract the dwelling data from the building data:
Analyze the extracted dwelling data:
Summarize the analyzed dwelling data: