Create a Spatial View

gpkg_create_spatial_view(
  g,
  viewname,
  viewquery,
  geom_column = "geom",
  geometry_type_name = "GEOMETRY",
  spatialite_computed = FALSE,
  data_type = "features",
  srs_id = 4326,
  z = 0,
  m = 0
)

Arguments

g

a geopackage

viewname

character. Name of view.

viewquery

character. Query for view contents.

geom_column

character. Column name of view geometry. Default: "geom"

geometry_type_name

character. View geometry type. Default: "GEOMETRY"

spatialite_computed

logical. Register definition of geom_column as the result of a Spatialite spatial function via "gdal_spatialite_computed_geom_column" extension. Default: FALSE

data_type

character. View data type. Default "features"

srs_id

integer. Spatial Reference System ID. Default: 4326 (WGS84)

z

integer. Default: 0

m

integer. Default: 0

Value

integer. Returns 1 if a new record in gpkg_geometry_columns is successfully made.