File: description.html

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (63 lines) | stat: -rw-r--r-- 1,982 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<h2>DESCRIPTION</h2>

<em>v.to.rast</em> transforms GRASS vector map
layers into GRASS raster map layer format.

<h2>NOTES</h2>

<em>v.to.rast</em> will only affect data in areas lying
inside the boundaries of the current geographic region.
Before running <em>v.to.rast</em>, the user should
therefore ensure that the current geographic region is
correctly set and that the region resolution is at the
desired level.

<p>
Either the <em><b>col</b></em> parameter or the <em><b>value</b></em>
parameter must be specified.
<P>
The <em><b>col</b></em> parameter uses an existing column from the vector map
database table as the category value in the output raster map. Existing table 
columns can be shown by using <em><a href="db.describe.html">db.describe</a></em>.
<P>
An empty raster map layer will be created if the vector map layer has not
been assigned category/attribute labels (e.g., through use of 
<a href="v.category.html">v.category option=add</a>). 
<P>
Otherwise:
<LI>
Labeled areas and/or centroids will produce filled raster coverages with edges 
that straddle the original area boundary <b>as long as the boundary is NOT 
labeled</b>.
<BR>(Use <tt>v.category option=del type=boundary</tt> to remove.)
<LI>
Labeled lines and boundaries will produce lines of raster cells which touch the 
original vector line. This tends to be more aggressive than area-only conversions.
<LI>
Points and orphaned centroids will be converted into single cells on the
resultant raster map.


<h2>EXAMPLE</h2>

<em>Convert a vector map and use column SPEED from attribute table</em><br>
<b>db.describe -c table=</b><em>vect_map</em>
<pre>
ncols:3
Column 1: CAT
Column 2: SPEED
Column 3: WIDTH 
</pre>

<b>v.to.rast in=</b><em>vect_map</em> <b>out=</b><em>raster_map</em>
<b>col=</b><em>SPEED</em>

<h2>AUTHORS</h2>

Michael Shapiro,  
U.S. Army Construction Engineering 
Research Laboratory
<br>
Radim Blazek, ITC-Irst, Trento, Italy

<p><i>Last changed: $Date: 2004/06/01 03:56:02 $</i>