DESCRIPTION

v.drape converts 2D vector point or line data into 3D vector format via sampling of an elevation surface. Three sampling algorithms adapted fromv v.sample were incorporated into this module: nearest neighbor, bilinear, and cubic convultion.

NOTES

Please run beforehand
g.region vect=2D_vector
and make sure that the extent of the elevation raster is at least as big as the vector to convert.

Additional vertices can be added to the input 2D vector with v.split.

The module can be used in conjunction with v.out.pov and r.out.pov to export a complete set of vector and raster data for display in POVRAY.

EXAMPLE

Spearfish example:

g.region -p vect=roads align=elevation.10m
v.drape in=roads rast=elevation.10m method=bilinear out=roads3d
v.info roads3d

POVRAY EXAMPLE

#setup the region
g.region vect=roads align=elevation.10m -p
#export the vector data
v.drape in=roads out=roads3d rast=elevation.10m
v.out.pov roads3d out=roads3d.pov
#export the raster data
r.out.pov elevation.10m tga=elevation.tga
r.out.png landcover.30m out=landcover30m.png

# now write a complete povscript and launch povray

SEE ALSO

r.out.pov, v.split, v.out.pov, v.what.rast

AUTHOR

Dylan Beaudette, University of California at Davis.
Raster sampling routines borrowed from v.sample.

Last changed: $Date$