GRASS logo

NAME

v.extrude - Extrudes flat vector features to 3D with defined height.

KEYWORDS

vector, geometry, 3D

SYNOPSIS

v.extrude
v.extrude help
v.extrude [-t] input=name layer=string [type=string[,string,...]] output=name [zshift=float] [elevation=name] [height=float] [hcolumn=name] [--overwrite] [--verbose] [--quiet]

Flags:

-t
Trace elevation
--overwrite
Allow output files to overwrite existing files
--verbose
Verbose module output
--quiet
Quiet module output

Parameters:

input=name [required]
Name of input vector map
Or data source for direct OGR access
layer=string [required]
Layer number or name ('-1' for all layers)
A single vector map can be connected to multiple database tables. This number determines which table to use. When used with direct OGR access this is the layer name.
Default: -1
type=string[,string,...]
Feature type
Options: point, line, boundary, area
Default: point,line,boundary,area
output=name [required]
Name for output vector map
zshift=float
Shifting value for z coordinates
Default: 0
elevation=name
Elevation raster for height extraction
height=float
Fixed height for 3D vector objects
hcolumn=name
Name of attribute column with object heights

DESCRIPTION

v.extrude creates faces, kernels, volumes or 3D lines based on 2D vector objects, i.e. points become 3D vertical lines, lines to 3D lines, boundaries to faces and areas to volumes (composition of faces and kernel).

If the flag -t is used then 3D vector objects follow the elevation model by using individual elevation values for the vertices and nodes. This can be useful for models of large objects (forest stands).

EXAMPLES

3D houses with fixed height

v.extrude input=houses output=houses3D height=5 type=area

3D houses with individual height

v.extrude input=houses output=houses3D elevation=dem hcolumn=height type=area

Convert 2D lines to 3D with fixed height

v.extrude input=lines output=lines3D elevation=dem height=0 type=line

SEE ALSO

nviz

AUTHOR

Jachym Cepicky,
Updated by Martin Landa, FBK-irst, Italy

Last changed: $Date: 2011-11-08 13:24:20 -0800 (Tue, 08 Nov 2011) $


Main index - Vector index - Full index

© 2003-2012 GRASS Development Team