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
)

Arguments

x

A geopackage object, or path to GeoPackage file.

table_name

character. New table name.

column_name

character. Geometry column name. Default "geom"

geometry_type_name

character. Geometry type name. Default: "GEOMETRY"

srs_id

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

z

integer. Default: 0

m

integer. Default: 0

Value

integer. 1 if table created or row inserted successfully, 0 otherwise.