| gpkg_write_attributes {gpkg} | R Documentation |
Write or Remove Attribute Table in a GeoPackage
Description
gpkg_write_attributes(): Specify a target geopackage and name for new table. For adding attributes, specify the new data as data.frame. The table name will be registered in the gpkg_contents table. Optionally include a custom description and/or use a template object to define the spatial extent associated with attribute data.
gpkg_remove_attributes(): Remove an attribute table and corresponding gpkg_contents record
Usage
gpkg_write_attributes(
x,
table,
table_name,
description = "",
template = NULL,
overwrite = FALSE,
append = FALSE
)
gpkg_remove_attributes(x, table_name)
Arguments
x |
A |
table |
A |
table_name |
|
description |
Optional description. Default |
template |
A |
overwrite |
Overwrite? Default |
append |
Append? Default |
Value
logical. TRUE on successful table write or remove.