Create gpkg_geometry_columns
table to account for geometry columns within the database with gpkg_create_geometry_columns()
. Register new geometry columns with gpkg_add_geometry_columns()
.
gpkg_create_geometry_columns(x)
gpkg_add_geometry_columns(
x,
table_name,
column_name,
geometry_type_name = "GEOMETRY",
srs_id,
z,
m
)
A geopackage object, or path to GeoPackage file.
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
integer. 1
if table created or row inserted successfully, 0
otherwise.