source_gpkg <- system.file("extdata", "clc.gpkg", package = "clc")
clo <- clc(source = source_gpkg, layer_name = "clc")
raster_path <- system.file("extdata", "mdt.tif", package = "clc")
base_raster <- terra::rast(raster_path)
# ex1
r <- clo |>
as_raster(base_raster = base_raster)
# ex2
r <- clo |>
as_raster(resolution = 50)
Run the code above in your browser using DataLab