GeoPackage Spatial Reference System

gpkg_spatial_ref_sys(x)

gpkg_list_srs(x, column_name = "srs_id")

gpkg_create_spatial_ref_sys(x, default = TRUE, query_string = FALSE)

gpkg_add_spatial_ref_sys(
  x,
  srs_name = "",
  srs_id = NULL,
  organization = "",
  organization_coordsys_id = 0L,
  definition = "",
  description = "",
  query_string = FALSE
)

gpkg_delete_spatial_ref_sys(x, srs_id = NULL)

Arguments

x

A geopackage object

column_name

Default: "srs_id"

default

logical or character. If TRUE, or one or more of "cartesian", "geographic", or "crs84", then these default Spatial Reference Systems are added.

query_string

logical. Return SQL queries without executing? Default: FALSE

srs_name

character. Spatial Reference System Name, for example "WGS 84 geodetic"

srs_id

integer. Spatial Reference System ID, for example 4326L

organization

character. Organization, for example "EPSG"

organization_coordsys_id

integer. Organization Coordinate System ID, for example 4326L

definition

character. WKT2019 Coordinate Reference System description string

description

character. Description

Value

gpkg_spatial_ref_sys(): data.frame

gpkg_list_srs(): vector of values from specified column_name

gpkg_create_spatial_ref_sys(): integer. Result of running sequential gpkg_execute() statements. This method is run for the side-effect of creating the table if needed, and adding any "default" records.

gpkg_add_spatial_ref_sys(): integer result of executing SQL statement

gpkg_delete_spatial_ref_sys(): integer result of executing SQL statement