Create an empty feature table and associated entries for gpkg_spatial_ref_sys, and gpkg_geometry_columns.
gpkg_create_empty_features(
x,
table_name,
column_name = "geom",
geometry_type_name = "GEOMETRY",
srs_id = 4326,
z = 0L,
m = 0L,
contents = TRUE,
description = "",
ext = c(-180, -90, 180, 90)
)A geopackage Object
character. New table name.
character. Geometry column name. Default "geom"
character. Geometry type name. Default: "GEOMETRY"
integer. Spatial Reference System ID. Must be defined in gpkg_spatial_ref_sys table.
integer. Default: 0
integer. Default: 0
logical. If TRUE (default) add the new table to gpkg_contents table.
character. Description for gpkg_contents table. Default: ""
numeric. A numeric vector of length four specifying the bounding box extent.
integer result of gpkg_execute(). Returns 1 if a new geometry record is appended to gpkg_geometry_columns table.