GRASS logo

NAME

r.to.vect.lines.py

NOTES

Extracts rows from a raster map as 3D vector lines.

Reads a raster map, writes to a vector map.

Doesn't check if output map already exists. (fixme)

The category given to the line refers to the row number. (starting with category 0!)

Nulls within a row are skipped, so holes will be filled by a straight line. (fixme) Nulls at the ends of lines are not included in the output line.

Nulls are not handled very well and may sneak through as very negative numbers. (fixme)

EXAMPLE

Display a wiggle plot in NVIZ:
(Spearfish dataset)
g.region rast=elevation.dem
r.to.vect.lines.py in=elevation.dem out=wiggle_lines
eval `v.info -g wiggle_lines`
r.mapcalc "floor = $bottom"
nviz elev=floor vector=wiggle_lines
r.to.vect.lines example

SEE ALSO

r.to.vect
v.in.lines

AUTHOR

Hamish Bowman
Dept. of Geology
University of Otago
Dunedin, New Zealand

Last changed: $Date$


Main index - raster index - Full index

© 2003-2016 GRASS Development Team