gpkg_create_dummy_features {gpkg} | R Documentation |
Create a Dummy Feature Dataset in a GeoPackage
Description
This function creates a minimal (empty) feature table and gpkg_geometry_columns
table entry.
Usage
gpkg_create_dummy_features(x, table_name = "dummy_feature", values = NULL)
Arguments
x |
A geopackage object |
table_name |
A table name; default |
values |
Values to use for new table. Defaults to default geometry name ( |
Details
This is a workaround so that gpkg_vect()
(via terra::vect()
) will recognize a GeoPackage as containing geometries and allow for use of OGR query utilities. The "dummy table" is not added to gpkg_contents
and you should not try to use it for anything. The main purpose is to be able to use gpkg_vect()
and gpkg_ogr_query()
on a GeoPackage that contains only gridded and/or attribute data.
Value
logical. TRUE
on success.
See Also
[Package gpkg version 0.0.8 Index]