NAME
d.vect - Displays GRASS vector data in the active frame on the graphics monitor.
SYNOPSIS
d.vect
d.vect help
d.vect [-vaci] map=string [type=string[,string,...]] [display=string[,string,...]] [attrcol=string] [icon=string] [size=integer] [field=integer] [cats=string] [where=string] [color=string] [fcolor=string] [lfield=integer] [lcolor=string] [bgcolor=string] [bcolor=string] [lsize=integer] [font=string] [xref=string] [yref=string] [minreg=float] [maxreg=float]
Flags:
- -v
- Run verbosely
- -a
- Get area fill colors from map table column 'GRASSRGB' (RR:GG:BB)
- -c
- Fill area with random colors according to cateory number
- -i
- Use values from 'cat' option as line id
Parameters:
- map=string
- Name of input vector
- type=string
- Select type: point, line, boundary, centroid or area
- Options: point,line,boundary,centroid,area,face
- Default: point,line,boundary,centroid,area,face
- display=string
- Display
- Options: shape,cat,topo,dir,attr,zcoor
- Default: shape
- attrcol=string
- Name of column to be displayed
- icon=string
- Point and centroid symbol
- Default: basic/cross
- size=integer
- Icon size
- Default: 8
- field=integer
- Field value
- Default: 1
- cats=string
- Category values (example: 1,3,7-9,13)
- where=string
- WHERE conditions of SQL statement without 'where' keyword. (example: income < 1000 and inhab >= 10000)
- color=string
- Line color
- Default: black
- fcolor=string
- Area fill color
- Default: gray
- lfield=integer
- Category field for labels
- Default: 1
- lcolor=string
- Label color
- Default: red
- bgcolor=string
- Label background color
- Default: none
- bcolor=string
- Label border color
- Default: none
- lsize=integer
- Label size (pixels)
- Default: 8
- font=string
- Font name
- Options: cyrilc,gothgbt,gothgrt,gothitt,greekc,greekcs,greekp,greeks,italicc,italiccs,italict,romanc,romancs,romand,romans,romant,scriptc,scripts
- Default: romans
- xref=string
- Label horizontal justification
- Options: left,center,right
- Default: left
- yref=string
- Label vertical justification
- Options: top,center,bottom
- Default: center
- minreg=float
- Minimum region size (average from height and width) when map is displayed
- maxreg=float
- Maximum region size (average from height and width) when map is displayed
DESCRIPTION
d.vect displays GRASS vector data in the active frame on the graphics
monitor.
NOTES
d.vect can simply be used typing d.vect map=vector_map.
Optional a large variety of parameters allow to specify vector type,
use of colors, data fields, SQL queries, label size and justification, etc.
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.
EXAMPLES
d.vect map=vectmap display=shape,cat lcolor=green
d.vect map=markveggy.vegtype where="VEGTYPE = 'IFA'"
d.vect -c map=soils display=shape,attr attrcol=label
SEE ALSO
d.erase
d.what.vect
d.rast
GRASS 5.7 tutorial pages
AUTHOR
Radim Blazek, ITC-Irst, Trento, Italy
Last changed: $Date: 2004/01/06 18:24:28 $
Help Index