
NAME
v.out.vtk - Convert a GRASS binary vector map to VTK ASCII output
SYNOPSIS
v.out.vtk
v.out.vtk help
v.out.vtk input=name [output=string] [feature=string] [dp=integer] [layer=integer]
Parameters:
- input=name
- Name of input vector map
- output=string
- Path to resulting VTK file.
- feature=string
- Feature that will be exported
- Options: point,kernel,centroid,line,boundary,area,face
- Default: line
- dp=integer
- Number of significant digits (floating point only)
- layer=integer
- Layer number
- Default: 1
DESCRIPTION
v.out.vtk
converts a GRASS vector map in binary format to the VTK ASCII
output.
If the output parameter is not given, the output will be send to stdout.
NOTES
Only one feature can be exported at a time, available features are:
- point
- line
- centroid
- boundary
- area
- face
Categorie data (cat) for the selected feature and layer will be written as scalar
data with name "cat". If no cat exists, the value will set to -1 as normal cat's are
always positive.
If a feature has more categories in one layer, only the first category
will be exported.
3d vectors are supported by default. The created VTK data always includes x, y and z coordinates.
If no elevation is available for the choosen feature, 0 will be set as z coordinate.
You can easily convert your 2d vectors into 3d vectors with v.drape.
The GRASS vector data is converted into the polydata format of VTK:
- vtk Vertices -- representing points and centroids
- vtk lines -- representing lines and boundaries
- vtk polygons -- representing areas and faces
The data can be visualized
VTK Toolkit,
Paraview and
MayaVi which are based on VTK.
Attention
If areas or faces are exported, the data have to be triangulated within Paraview or
MayaVi!
EXAMPLE
Spearfish example:
Export the soils with cats in layer 1:
v.out.vtk input=soils feature=area layer=1 output=/tmp/soils.vtk
Export the streams with cats in layer 1:
v.out.vtk input=streams feature=line layer=1 output=/tmp/streams.vtk
Write the archsite vtk outpout to stdout with cats in layer 1:
v.out.vtk input=archsites feature=point layer=1
SEE ALSO
v.out.ascii
r.out.vtk
r3.out.vtk
AUTHORS
Soeren Gebbert
Main index - vector index - Full index