.TH v.drape 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBv.drape\fR\fR - Converts vector map to 3D by sampling of elevation raster map. .SH KEYWORDS vector, geometry, sampling .SH SYNOPSIS \fBv.drape\fR .br \fBv.drape help\fR .br \fBv.drape input\fR=\fIname\fR [\fBtype\fR=\fIstring\fR[,\fIstring\fR,...]] [\fBrast\fR=\fIname\fR] \fBoutput\fR=\fIname\fR [\fBmethod\fR=\fIstring\fR] [\fBscale\fR=\fIfloat\fR] [\fBwhere\fR=\fIsql_query\fR] [\fBlayer\fR=\fIinteger\fR] [\fBnull_value\fR=\fIfloat\fR] [\-\-\fBoverwrite\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-\-overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB\-\-verbose\fR" 4m .br Verbose module output .IP "\fB\-\-quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBinput\fR=\fIname\fR" 4m .br Name of input vector map .IP "\fBtype\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Feature type .br Options: \fIpoint,centroid,line,boundary,face,kernel\fR .br Default: \fIpoint,centroid,line,boundary,face,kernel\fR .IP "\fBrast\fR=\fIname\fR" 4m .br Elevation raster map for height extraction .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output vector map .IP "\fBmethod\fR=\fIstring\fR" 4m .br Sampling method .br Options: \fInearest,bilinear,cubic\fR .br Default: \fInearest\fR .br \fBnearest\fR: nearest neighbor .br \fBbilinear\fR: bilinear interpolation .br \fBcubic\fR: cubic convolution interpolation .IP "\fBscale\fR=\fIfloat\fR" 4m .br Scale sampled raster values .br Default: \fI1.0\fR .IP "\fBwhere\fR=\fIsql_query\fR" 4m .br WHERE conditions of SQL statement without 'where' keyword .br Example: income = 10000 .IP "\fBlayer\fR=\fIinteger\fR" 4m .br Layer number .br Layer is only used for WHERE SQL statement .br Default: \fI1\fR .IP "\fBnull_value\fR=\fIfloat\fR" 4m .br Vector Z value for unknown height .br Will set Z to this value, if value from raster map can not be read .PP .SH DESCRIPTION .PP \fIv.drape\fR converts 2D/3D vector data into 3D vector format via sampling of an elevation surface. Three sampling algorithms adapted from v.sample were incorporated into this module: nearest neighbor, bilinear, and cubic convultion. .PP v.drape will skip vector features outside of current computational region or where raster map has NULL value. It's possible to include all vector features by specifying height value that will be assigned to verticles whose values can not be determined from raster map. .SH NOTES .PP Additional vertices can be added to the input 2D vector map with v.split. .PP 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. .SH EXAMPLES .PP Spearfish example: \fC .DS .br v.drape in=roads rast=elevation.10m method=bilinear out=roads3d .br v.info roads3d .br .DE \fR .PP Create 3D vector roads map containing only "unimproved" roads. Set road height to 1000 m for all parts without height information. \fC .DS .br v.drape input=roads type=line rast=elevation.dem output=roads_3d \(rs .br method=nearest scale=1.0 where='cat=5' layer=1 null_value=1000 .br .DE \fR .SH POVRAY EXAMPLE \fC .DS .br #export the vector data .br v.drape in=roads out=roads3d rast=elevation.10m .br v.out.pov roads3d out=roads3d.pov .br #export the raster data .br r.out.pov elevation.10m tga=elevation.tga .br r.out.png landcover.30m out=landcover30m.png .br .br # now write a complete povray-script and launch povray .br .DE \fR .SH SEE ALSO \fI r.out.pov, v.in.region, v.out.pov, v.overlay, v.split, v.what.rast, v.extrude \fR .SH AUTHOR Dylan Beaudette, University of California at Davis. .PP \fILast changed: $Date: 2011-11-08 12:29:50 +0100 (Tue, 08 Nov 2011) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team