gpkg_contents table and recordsR/gpkg-contents.R
gpkg-contents.Rdgpkg_add_contents(): Add a record to gpkg_contents
gpkg_update_contents(): Add and remove gpkg_contents records to match existing tables
gpkg_delete_contents(): Delete a record from gpkg_contents based on table name
gpkg_create_contents(): Create an empty gpkg_contents table
gpkg_add_contents(
x,
table_name,
data_type = NULL,
description = "",
srs_id = NULL,
ext = NULL,
template = NULL,
query_string = FALSE
)
gpkg_update_contents(x)
gpkg_delete_contents(x, table_name, query_string = FALSE)
gpkg_create_contents(x, query_string = FALSE)A geopackage
Name of table to add or remove record for in gpkg_contents
character. One of: 2d-gridded-coverage, "features", "attributes". Default NULL will attempt to auto-detect table type based on gpkg_table_pragma() information; falls back to "attributes" if raster or vector data are not detected.
Default: ""
integer. Spatial Reference System ID. Must be defined in gpkg_spatial_ref_sys table.
numeric. A numeric vector of length four specifying the bounding box extent.
Deprecated. A list containing elements "srsid" and "ext".
logical. Return SQLite statement rather than executing it? Default: FALSE
logical. TRUE on successful execution of SQL statements.