Vector area fill colors can be specified in an attribute table column with name 'GRASSRGB'. With flag -a every area is filled depending on the category number. A table for a vector area map may look like this:
echo "select * from testisola" | db.select cat|label|GRASSRGB 0|no data| 90|FRASSILONGO|23:245:67 104|LEVICO|23:145:67 139|PERGINE VALSUGANA|223:45:237 168|SANT'ORSOLA|223:45:67 190|TENNA|123:45:67
To change a color, the SQL update function can be used:
echo "update testisola set GRASSRGB='123:45:237' where cat=139" | db.execute
Much simpler is color coding with -c flag which is using the category numbers to fill area polygons.
The module can use Freetype/TTF fonts which have to be selected first with d.font.freetype.
Last changed: $Date$