Vector Attribute Display: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
No edit summary
 
(links updated)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Q:''' Is it possible to display a vector (polygon) map so that colors are chosen based on an attribute column (not the "cat")? I assume this can be done through v.reclass with a rules file, but am hoping there is a simpler way.
'''Q:''' Is it possible to display a vector (polygon) map so that colors are chosen based on an attribute column (not the "cat")? I assume this can be done through v.reclass with a rules file, but am hoping there is a simpler way.


'''A:''' Please enjoy the -c flag. In a couple of days it should also support lines and points (see GRASS 6.1-CVS).
'''A:''' For random colorization enjoy the -c flag. For precise colorization add a column containing RRR:GGG:BBB values (use {{cmd|v.db.update}} to quickly populate it) and then use the -a flag of {{cmd|d.vect}}.
 
See also: [[GRASS Vector Attributes]]
 
[[Category:FAQ]]
[[Category:Vector]]

Latest revision as of 09:38, 5 March 2014

Q: Is it possible to display a vector (polygon) map so that colors are chosen based on an attribute column (not the "cat")? I assume this can be done through v.reclass with a rules file, but am hoping there is a simpler way.

A: For random colorization enjoy the -c flag. For precise colorization add a column containing RRR:GGG:BBB values (use v.db.update to quickly populate it) and then use the -a flag of d.vect.

See also: GRASS Vector Attributes