list_layers: Return layers from uploaded data

View source: R/fct_list_layers.R

list_layersR Documentation

Return layers from uploaded data

Description

list_layers returns the name and path to layers from data uploaded to the application as a tibble (data frame like object). If a GeoPackage is uploaded which contains more than one layer, each layer and the path to that layer will be recorded on a separate row of the returned tibble.

Usage

list_layers(f_path, f_name)

Arguments

f_path

A character vector of file paths for GeoPackage(s) uploaded by the user.

f_name

A character vector of file names of GeoPackage(s) uploaded by the user.

Value

A tibble with three columns: layers - layer name; layer_disp_name - clean and informative layer name for select input; file_path - temporary file path to data; and file_type - file type.


livelihoods-and-landscapes/maplandscape documentation built on March 20, 2023, 5:43 a.m.