gpkg_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,
  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)

Arguments

x

A geopackage

table_name

Name of table to add or remove record for in gpkg_contents

description

Default: ""

srs_id

integer. Spatial Reference System ID. Must be defined in gpkg_spatial_ref_sys table.

ext

numeric. A numeric vector of length four specifying the bounding box extent.

template

Deprecated. A list containing elements "srsid" and "ext".

query_string

logical. Return SQLite statement rather than executing it? Default: FALSE

Value

logical. TRUE on successful execution of SQL statements.