get_levels.clc | R Documentation |
This function extracts the levels values associated with a CLC style definition. It returns a data frame that contains the fields 'id', 'description', and 'color' from the CLC style definition.
## S3 method for class 'clc'
get_levels(clo)
get_levels(clo)
## S3 method for class 'clc_category'
get_levels(clo)
## S3 method for class 'clc_raster'
get_levels(clo)
clo |
A CLC object. |
A data frame with columns: - 'id': The identifier of the category. - 'description': A textual description of the category. - 'color': The color associated with the category.
Other CLC class functions:
as_raster()
,
clc()
,
copy_to()
,
cut_to_extent()
,
get_colors.clc()
,
get_raster()
,
plot_clc()
,
prepare_plot()
,
save_to()
source_gpkg <- system.file("extdata", "clc.gpkg", package = "clc")
clo <- clc(source = source_gpkg, layer_name = "clc")
levels <- clo |>
get_levels()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.