Write a (spatial - sf) data frame to layer in a GeoPackage.
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.