gpkg_add_contents {gpkg}R Documentation

Add, Remove, Update and Create gpkg_contents table and records

Description

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

Usage

gpkg_add_contents(
  x,
  table_name,
  description = "",
  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 ""

template

Default NULL uses global EPSG:4326 with bounds -180,-90:180,90

query_string

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

Value

logical. TRUE on successful execution of SQL statements.


[Package gpkg version 0.0.8 Index]