Skip to contents

This function downloads CSV files from specified URLs and converts them into layers within a GeoPackage using the ogr2ogr command-line tool from GDAL.

Usage

rfp_source_csv(path_gpkg, urls_csv)

Arguments

path_gpkg

A string specifying the path to the output GeoPackage file.

urls_csv

A character vector of URLs pointing to the CSV files to be downloaded and converted.

Value

Invisible NULL. This function is called for its side effects.

See also

Other source ogr2ogr gpkg: rfp_source_url()

Examples

if (FALSE) { # \dontrun{
path_gpkg <- "background_layers.gpkg"
urls_csv <- c(
  "https://raw.githubusercontent.com/smnorris/bcfishpass/main/parameters/example_newgraph/parameters_habitat_method.csv",
  "https://raw.githubusercontent.com/smnorris/bcfishpass/main/parameters/example_newgraph/parameters_habitat_thresholds.csv"
)
rfp_source_csv(path_gpkg, urls_csv)
} # }