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
)
a geopackage
character. Name of view.
character. Query for view contents.
character. Column name of view geometry. Default: "geom"
character. View geometry type. Default: "GEOMETRY"
logical. Register definition of geom_column
as
the result of a Spatialite spatial function via
"gdal_spatialite_computed_geom_column"
extension.
Default: FALSE
character. View data type. Default "features"
integer. Spatial Reference System ID. Default: 4326
(WGS84)
integer. Default: 0
integer. Default: 0
integer. Returns 1
if a new record in gpkg_geometry_columns
is successfully made.