3
<em>d.vect</em> displays GRASS vector data in the active frame on the graphics
8
<em>d.vect</em> can simply be used typing <tt>d.vect
9
map=vector_map</tt>. There are a large variety of optional parameters
10
which allow the user to specify vector type, colors, data fields, SQL
11
queries, label size and justification, etc.
14
By default <em>d.vect</em> fills in holes in polygons (islands). If
15
you only want to show active areas limit the features with, e.g.,
16
<div class="code"><pre>
17
d.vect map=vector_map cats=1-999999
21
In order to display attributes in the map, <tt>display=attr</tt> must be
22
specified in addition to the column name (<b>attrcol</b> parameter).
25
Colors may be specified in an attribute table column named 'GRASSRGB'
26
(which is a <tt>varchar(11)</tt> column
27
containing <tt>RRR:GGG:BBB</tt> values), see the flag <b>-a</b>.
30
A table for a vector map might look like this:
32
<div class="code"><pre>
33
db.select sql="select * from testisola"
36
90|FRASSILONGO|23:245:67
38
139|PERGINE VALSUGANA|223:45:237
39
168|SANT'ORSOLA|223:45:67
44
To add the GRASSRGB color column, use <em><a href="v.db.addcol.html">v.db.addcol</a></em>:
45
<div class="code"><pre>
46
v.db.addcol map=testisola columns="GRASSRGB varchar(11)"
50
To add/change a color, use <em><a href="v.db.update.html">v.db.update</a></em>:
51
<div class="code"><pre>
52
v.db.update map=testisola column=GRASSRGB value="123:45:237" where="cat=139"
56
A much simpler method of color coding is by using the <b>-c</b> flag
57
which displays vector elements of like category number with a random
61
This module can use FreeType/TrueType fonts if they have already been selected with
62
<em><a href="d.font.html">d.font</a></em>.
65
Parameter <b>width</b> is set by default to '0'. XDRIVER specifies the
66
precise behaviour for non-zero line width, but drivers have some
67
freedom as to how zero-width lines are handled, so they can use the
68
hardware's "thin line" drawing primitive, if it has one. A
69
width of zero can potentially result in significantly faster operation. On
70
drivers where there is no such thing as a "thin" line, the driver will
71
use a sensible default (which might not be the same as '1').
77
<div class="code"><pre>
78
# display roads with category numbers:
79
d.vect map=roads display=shape,cat lcolor=green
81
# display randomly colorized soils map with attributes
82
d.vect -c map=soils display=attr attrcol=label
84
# display randomly colorized selected vectors from soils map
85
d.vect -c map=soils where="label='VBF'" display=shape,attr attrcol=label
89
3D points, 3D lines and 3D polygons colorized according to z height:
90
<div class="code"><pre>
91
g.region rast=elevation.10m
92
r.random input=elevation.10m n=5000 vector=random3d -d
94
# display as black points
96
# display 3D points colorized according to z height
97
d.vect -z map=random3d zcolor=gyr
100
r.contour input=elevation.10m output=contour20m step=20
101
d.vect -z map=contour20m zcolor=gyr
103
# generate 3D triangles
104
v.delaunay input=random3d output=random3d_del
105
# display 3D polygons colorized according to z height
106
d.vect -z map=random3d_del type=area zcolor=gyr
112
<a href="d.erase.html">d.erase</a>,
113
<a href="d.what.vect.html">d.what.vect</a>,
114
<a href="d.rast.html">d.rast</a>,
115
<a href="d.font.freetype.html">d.font.freetype</a>,
116
<a href="v.colors.html">v.colors</a>,
117
<a href="v.db.addcol.html">v.db.addcol</a>,
118
<a href="v.db.update.html">v.db.update</a><br>
119
<a href="sql.html">GRASS SQL interface</a>
125
Radim Blazek, ITC-Irst, Trento, Italy<br>
126
other GRASS developers
129
<i>Last changed: $Date: 2011-11-08 10:42:51 +0100 (Tue, 08 Nov 2011) $</i>