sits_colors_qgis | R Documentation |
Saves a color table associated to a classified data cube as a QGIS style file
sits_colors_qgis(cube, file)
cube |
a classified data cube |
file |
a QGIS style file to be written to |
No return, called for side effects
Gilberto Camara, gilberto.camara@inpe.br
if (sits_run_examples()) {
data_dir <- system.file("extdata/raster/classif", package = "sits")
ro_class <- sits_cube(
source = "MPC",
collection = "SENTINEL-2-L2A",
data_dir = data_dir,
parse_info = c( "X1", "X2", "tile", "start_date", "end_date",
"band", "version"),
bands = "class",
labels = c(
"1" = "Clear_Cut_Burned_Area",
"2" = "Clear_Cut_Bare_Soil",
"3" = "Clear_Cut_Vegetation",
"4" = "Forest")
)
qml_file <- paste0(tempdir(), "/qgis.qml")
sits_colors_qgis(ro_class, qml_file)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.