Download and read BRGM "BD Charm 50" harmonised geology layers
get_brgm.RdDownloads and reads the geology layer (S_FGEOL_*.shp) from BRGM
"BD Charm 50" ZIP archives for one or several French
departments.
Arguments
- deps
characterornumeric; One or sevral french department code (seeget_cog()).- key
characterSource use to download geology from BRGM. Must be one of:"carhab": geological data used to created theCarHabdataset ;"bdcharm50": geological maps, vectorized and harmonised at 1:50,000 scale.
- cache
character; Storage directory. Defaults to the user cache directory (seetools::R_user_dir()).- verbose
logicalIfTRUE, display messages.- overwrite
logicalIfTRUE, overwrite zipfile.
Details
Multiple departments are combined into a single sf object.
For each department:
The corresponding BRGM ZIP archive is obtained via
download_brgm();The geology shapefile (
S_FGEOL_*.shp) is imported ;The layer is read directly from the ZIP using
sf::read_sf("/vsizip/...")without extracting files ;
The resulting layers are row-bound into a single sf object. All
geometries are returned in the CRS provided by BRGM (typically EPSG:2154).