Debian Codegraph @

vector/v.drape/v.drape.html

raw
1 <h2>DESCRIPTION</h2>
2
3 <em>v.drape</em> converts 2D/3D vector data into 3D vector format via
4 sampling of an elevation surface. Three sampling algorithms adapted
5 from <em><a href="v.sample.html">v.sample</a></em> were incorporated
6 into this module: nearest neighbor, bilinear, and cubic convultion.
7
8 <p>
9 <em>v.drape</em> will skip vector features outside of current
10 computational region or where raster map has NULL value. It's possible
11 to include all vector features by specifying height value that will be
12 assigned to verticles whose values can not be determined from raster
13 map.
14
15 <h2>NOTES</h2>
16
17 Additional vertices can be added to the input 2D vector map
18 with <em><a href="v.split.html">v.split</a></em>.
19
20 <p>
21 The module can be used in conjunction
22 with <em><a href="v.out.pov.html">v.out.pov</a></em> and
23 <em><a href="r.out.pov.html">r.out.pov</a></em> to export a complete
24 set of vector and raster data for display
25 in <a href="http://www.povray.org/">POVRAY</a>.
26
27 <h2>EXAMPLES</h2>
28
29 Spearfish example:
30
31 <div class="code"><pre>
32 v.drape in=roads elevation=elevation.10m method=bilinear out=roads3d
33 v.info roads3d
34 </pre></div>
35
36 <p>
37 Create 3D vector roads map containing only "unimproved" roads. Set
38 road height to 1000 m for all parts without height information.
39
40 <div class="code"><pre>
41 v.drape input=roads type=line elevation=elevation.dem output=roads_3d \
42 method=nearest scale=1.0 where='cat=5' layer=1 null_value=1000
43 </pre></div>
44
45 <h3>POVRAY example</h3>
46
47 <div class="code"><pre>
48 #export the vector data
49 v.drape in=roads out=roads3d elevation=elevation.10m
50 v.out.pov roads3d out=roads3d.pov
51 #export the raster data
52 r.out.pov elevation.10m tga=elevation.tga
53 r.out.png landcover.30m out=landcover30m.png
54
55 # now write a complete povray-script and launch povray
56 </pre></div>
57
58 <h2>SEE ALSO</h2>
59
60 <em>
61 <a href="v.extrude.html">v.extrude</a>,
62 <a href="v.to.3d.html">v.to.3d</a>,
63 <a href="r.out.pov.html">r.out.pov</a>,
64 <a href="v.in.region.html">v.in.region</a>,
65 <a href="v.out.pov.html">v.out.pov</a>,
66 <a href="v.overlay.html">v.overlay</a>,
67 <a href="v.split.html">v.split</a>,
68 <a href="v.what.rast.html">v.what.rast</a>
69 </em>
70
71 <h2>AUTHORS</h2>
72
73 Dylan Beaudette, University of California at Davis.<br>
74 Updated for GRASS 7 by Martin Landa, Czech Technical University in
75 Prague, Czech Republic