Skip to content

manage BD Topo

Management of BD Topo database

BD Topo is a DB that describes the lad use in France in a vector format. Current version is 3.0. It has many layers, all of them are interesting, but are not treated in floodam.data.

There are 3 formats for the archives :

  • SHP, normally this format can be handled by floodam.data but it is no more a priority
  • GPKG, which is the one that should be treated by floodam.data
  • SQL, not handled at the moment in floodam.data (and not a goal for version 1.0.0.0)

BD Topo can be downloaded from IGN or from data.cquest :

Functions/dataset to be added

  • download_bd_topo
    • description download the data from official repository (and data.cquest as it is by far more reliable...)
    • adaptation of download.bd_topo
    • use new journal (add_log_info)
    • output archive in original version
  • adapt_bd_topo
    • description format the data from official repository in aimed data based on scheme_bd_topo_3_0
    • should be something that encapsulates extract_building, extract_dwelling
    • define first all layers of interest and the view needed (complete the lis, we will decide fater if included in version 1.0.0.0 or later)
      • extract_building_agriculture
      • extract_road
    • use new journal (add_log_info)
    • output: archive in formatted version
  • scheme_bd_topo_3_2
    • description global data to be used for formatting data
    • verification of what has already be done in scheme_bd_topo_3 (that should be replaced)
    • it could be interesting to complete scheme with former version also !
  • analyse_bd_topo
    • description some analyses to be performed after downloading and formatting.
    • should be something that encapsulates analyse_dwelling and further analyses.
  • vignettes/bd_topo_fr
    • description presentation of the data in French
    • complete what has already be done
  • vignettes/bd_topo_en
    • description presentation of the data in English
    • complete what has already be done, from tanslation of bd_topo_fr when it is done

For each function/dataset. Please follow this procedure

  • creation of function
    • code of function
    • documentation of function
    • example for function
    • test for function
  • creation of dataset
    • script for creation of "raw" data (if needed)
    • storage of raw data in ascii format, normally in inst/extdata
    • script in to maintain data in /data-raw
    • documentation of data
Edited by Frédéric Grelot