other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
v.colors(1grass) | Grass User's Manual | v.colors(1grass) |
NAME¶
v.colors - Set color rules for features in a vector using a numeric attribute column.KEYWORDS¶
vector, color tableSYNOPSIS¶
v.colorsFlags:¶
- -s
-
- -n
-
- --overwrite
-
- --verbose
-
- --quiet
-
Parameters:¶
- map=name
-
- column=string
-
- layer=integer
-
- rgb_column=string
-
- range=min,max
-
- color=style
-
- raster=string
-
- rules=string
-
- placeholder=string
-
DESCRIPTION¶
v.colors allows the user to create and/or modify the color table for a vector map. The vector map (specified on the command line by map) must exist in the user's current mapset search path. As input a vector map with a numeric data column is required which is used to apply the color rules. The color values are stored in a string column (default name "GRASSRGB", varchar(11)) by saving the RRR:GGG:BBB values suitable for use with 'd.vect -a'. If this RGB column is not found in the attribute table, it is automatically created. How it works: it creates a dummy raster map with the same data range as the vector's column then runs r.colors for that temporary map. It then uses r.what.colors for each value found by v.db.select and uploads it a new column in the vector map's attribute database. It is planned that this script will be replaced with a C display module which renders thematic vector maps directly instead requiring the overhead of saving the colors into the DB. If the target column name given by the rgb_column option does not exist, it will be created. The default name is "GRASSRGB".EXAMPLES¶
Creating a random sample point map, query raster map values for those points, and colorize output:columns="east double precision, north double precision, height double precision, GRASSRGB varchar(11)"
SEE ALSO¶
d.vect -z, r.colors, r.colors.stddev, r.what.color, v.db.addcol, v.db.select, db.execute See also wiki page Color tables (from GRASS User Wiki) ColorBrewer is an online tool designed to help people select good color schemes for maps and other graphics.AUTHOR¶
Hamish BowmanGRASS 6.4.4 |