% Generated by roxygen2: do not edit by hand % Please edit documentation in R/copy_gpkg_to_db.R \name{copy_gpkg_to_db} \alias{copy_gpkg_to_db} \title{Export GPKG to PostgreSQL} \usage{ copy_gpkg_to_db(gpkg = NULL, layer = NULL, conf = NULL) } \arguments{ \item{gpkg}{Gpkg file path.} \item{layer}{A gpkg file layer \code{\link[sf:st_layers]{sf::st_layers()}}.} \item{conf}{A list() of configuration variables. Default values \code{\link[ruut]{get_config}}.} } \value{ No output. } \description{ Exports a gpkg file layer into a PostgreSQL database. } \details{ gtype: Output geometry type 'enum':. Acceptable values: Number of selected option, e.g. '1' or Comma separated list of options, e.g. c(1,3). See more: \url{https://gdal.org/drivers/vector/pg.html}. \itemize{ \item 0: \item 1: NONE \item 2: GEOMETRY \item 3: POINT \item 4: LINESTRING \item 5: POLYGON \item 6: GEOMETRYCOLLECTION \item 7: MULTIPOINT \item 8: MULTIPOLYGON \item 9: MULTILINESTRING } } \examples{ \dontrun{ conf <- ruut::get_config() gpkg_file <- "/home/ardo/aaa/data/gpkg/grids/estonian_grids.gpkg" # Vaata layer'eid sf::st_layers(gpkg_file) # Vali layer layer <- "epk200t_grid" conf$table <- "aaa_1" conf$schema <- "data" copy_gpkg_to_db(gpkg = gpkg_file, layer = layer, conf = conf) copy_gpkg_to_db(gpkg = gpkg_file, conf = conf) # viga } } \seealso{ \code{\link[=get_config]{get_config()}}, \code{\link[=copy_shp_to_db]{copy_shp_to_db()}}, \code{\link[=copy_qgis_object_to_db]{copy_qgis_object_to_db()}} } \keyword{gpkg} \keyword{postgis,}