write_tables: Write a layer to a GeoPackage file

View source: R/fct_write_tables.R

write_tablesR Documentation

Write a layer to a GeoPackage file

Description

Write a (spatial - sf) data frame to layer in a GeoPackage.

Usage

write_tables(df, gpkg_dir, lyr)

Arguments

df

Data frame or spatial data frame (sf) to write to GeoPackage.

gpkg_dir

Data frame generated from list_layers indicating names, file types, and paths to files uploaded tables.

lyr

User selected layer - this is used for selecting the relevant layer from a GeoPackage with many tables.

Details

Designed to be used with Shiny apps where a GeoPackage is in a temporary directory within the app instance.


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