Retrieve a raster representation (`terra::SpatRaster`) from a CLC object.
See also
Other CLC class functions:
as_raster()
,
clc()
,
copy_to()
,
cut_to_extent()
,
get_colors.clc()
,
get_levels.clc()
,
plot_clc()
,
prepare_plot()
,
save_to()
Examples
source_gpkg <- system.file("extdata", "clc.gpkg", package = "clc")
clo <- clc(source = source_gpkg, layer_name = "clc")
r <- clo |>
as_raster(resolution = 50)
clc_r <- r |>
get_raster()