argentum_download_layers {Argentum}R Documentation

Download WFS Layers to Folder

Description

This function downloads WFS layers from specified organizations to a local folder. It can download all layers from an organization or specific layers by name.

Usage

argentum_download_layers(
  organization,
  output_dir = file.path(tempdir(), "wfs_layers"),
  layer_names = NULL,
  format = c("gpkg", "shp", "geojson"),
  overwrite = FALSE
)

Arguments

organization

A character string specifying the name of the organization

output_dir

Path to the directory where files will be saved. Defaults to a temporary directory.

layer_names

Optional vector of layer names to download. If NULL, downloads all available layers

format

Output format for the files. One of "gpkg" (GeoPackage), "shp" (Shapefile), or "geojson" (GeoJSON)

overwrite

Logical; should existing files be overwritten?

Details

Download WFS Layers to Folder

Value

Invisibly returns a data frame with download results

Examples


# Get available organizations
orgs <- argentum_list_organizations()
if (nrow(orgs) > 0) {
  argentum_download_layers(orgs$Name[1], output_dir = tempdir())
}


[Package Argentum version 1.0.0 Index]