GRASS logo

NAME - Convert raster rows to vector lines.


raster, conversion, wiggles

SYNOPSIS --help [-v] input=name output=name [skip=integer] [--overwrite] [--help] [--verbose] [--quiet] [--ui]


Sample vertically (default is to sample horizontally)
Allow output files to overwrite existing files
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


input=name [required]
Name of input raster map
output=name [required]
Name for output vector map
Sample every Nth grid row
Options: 1-100000
Default: 10

Table of contents


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)


Display a wiggle plot in NVIZ:
(Spearfish dataset)
g.region raster=elevation.dem in=elevation.dem out=wiggle_lines
eval ` -g wiggle_lines`
r.mapcalc "floor = $bottom"
nviz elev=floor vector=wiggle_lines

# alternative
m.nviz.image elevation_map=floor vline=wiggle_lines resolution_fine=1 \
  zexag=20 out=wiggle.png perspective=5 example



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

Last changed: $Date: 2014-12-27 14:30:46 +0100 (Sat, 27 Dec 2014) $


Available at: source code (history)

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2018 GRASS Development Team, GRASS GIS 7.4.1svn Reference Manual