Remove Specified Layers from a GeoPackage
rfp_u_rm_gpkg_layers.Rd
rfp_u_rm_gpkg_layers()
has been superseded in favour of gdalraster::ogr_layer_delete()
This function removes specified layers from a GeoPackage by listing all layers
using sf::st_layers
, then recreating the GeoPackage without the specified layers
using ogr2ogr
commands executed via system2
.
Examples
if (FALSE) { # \dontrun{
path_gpkg <- "path/to/your.gpkg"
layers_remove <- c("layer_to_remove1", "layer_to_remove2")
rfp_u_rm_gpkg_layers(path_gpkg, layers_remove)
} # }