Skip to contents

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.