GRASS logo

NAME

r.colors.lc - Sets the colors for a land cover classification.

KEYWORDS

raster, colors, land cover, fuzzy logic, Levenshtein Distance

SYNOPSIS

r.colors.lc
r.colors.lc --help
r.colors.lc map=name [referencemap=string] [color_column=name] [class_column=name] [--help] [--verbose] [--quiet] [--ui]

Flags:

--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

map=name [required]
Name of input land cover map
Name of input raster map
referencemap=string
Name for input vector map
Needs a column with class information. If a color column is given these colors are written to the raster
color_column=name
Name of color column in referencemap
Color have to be given in format like r:g:b e.g. 255:255:255
class_column=name
Name of class information column in referencemap
Takes class information as string or integer. If color_column is not given and type is int random colors are set, otherwise Levenshtein Distance is used to match colors

Table of contents

DESCRIPTION

r.colors.lc sets the colors for a land cover classification.

There are different variants of how the color values can be selected.

The first one is that a reference vector map referencemap with a class column class_column and a r:g:b color column color_column is passed as parameter. Then the color values from the color column are set for the corresponding classes. If the class information in the class column contains integer values, these are assigned directly to the map values. If the values are string values, the category label of the map is used.

The second possibility is to pass only a land cover map map. If this map has a category label, it is tried to match it with fuuzy logic to a land cover class color dictionary and set the colors automatically. If the map does not have category labels, a random color map is added.

EXAMPLES

Assign color from color column in referencemap

r.colors.lc referencemap=incora_dortmund_LULC_training_points_color map=classification color_column=color class_column=lulc_int

Matching land cover category labels with fuzzy logic

r.colors.lc map=classification

SEE ALSO

r.colors.fuzzy_lc (addon), v.colors.to.rast (addon)

AUTHORS

Anika Weinmann and Guido Riembauer, mundialis, Germany

SOURCE CODE

Available at: r.colors.lc source code (history)

Accessed: Monday May 20 20:01:50 2024


Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2024 GRASS Development Team, GRASS GIS 8.4.0dev Reference Manual