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
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.