.TH r.to.vect 1grass "" "GRASS 6.4.2" "Grass User's Manual" .SH NAME \fI\fBr.to.vect\fR\fR - Converts a raster map into a vector map layer. .SH KEYWORDS raster, conversion, vectorization .SH SYNOPSIS \fBr.to.vect\fR .br \fBr.to.vect help\fR .br \fBr.to.vect\fR [-\fBsvzbq\fR] \fBinput\fR=\fIname\fR \fBoutput\fR=\fIname\fR \fBfeature\fR=\fIstring\fR [--\fBoverwrite\fR] [--\fBverbose\fR] [--\fBquiet\fR] .SS Flags: .IP "\fB-s\fR" 4m .br Smooth corners of area features .IP "\fB-v\fR" 4m .br Use raster values as categories instead of unique sequence (CELL only) .IP "\fB-z\fR" 4m .br Write raster values as z coordinate. Table is not created. Currently supported only for points. .IP "\fB-b\fR" 4m .br Do not build vector topology (use with care for massive point export) .IP "\fB-q\fR" 4m .br Quiet - Do not show progress .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 raster map .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output vector map .IP "\fBfeature\fR=\fIstring\fR" 4m .br Feature type .br Options: \fIpoint,line,area\fR .br Default: \fIline\fR .PP .SH DESCRIPTION \fIr.to.vect\fR scans the named \fBinput\fR raster map layer, extracts points, lines or area edge features from it, converts data to GRASS vector format. .SS Points The \fIr.to.vect\fR program extracts data from a GRASS raster map layer and stores output in a new GRASS \fIvector\fR file. .SS Lines \fIr.to.vect\fR assumes that the \fIinput\fR map has been thinned using \fIr.thin\fR. .PP \fIr.to.vect\fR extracts vectors (aka, "arcs") from a raster map. These arcs may represent linear features (like roads or streams), or may represent area edge features (like political boundaries, or soil mapping units). .PP \fIr.thin\fR and \fIr.to.vect\fR may create excessive nodes at every junction, and may create small spurs or "dangling lines" during the thinning and vectorization process. These excessive nodes and spurs may be removed using \fIv.clean\fR. .SS Areas \fIr.to.vect\fR first traces the perimeter of each unique area in the raster map layer and creates vector data to represent it. The cell category values for the raster map layer will be used to create attribute information for the resultant vector area edge data. .PP A true vector tracing of the area edges might appear blocky, since the vectors outline the edges of raster data that are stored in rectangular cells. To produce a better-looking vector map, \fIr.to.vect\fR smoothes the corners of the vector data as they are being extracted. At each change in direction (i.e., each corner), the two midpoints of the corner cell (half the cell's height and width) are taken, and the line segment connecting them is used to outline this corner in the resultant vector map. (The cell's cornermost node is ignored.) Because vectors are smoothed by this program, the resulting vector map will not be "true" to the raster map from which it was created. The user should check the resolution of the geographic region (and the original data) to estimate the possible error introduced by smoothing. .PP \fIr.to.vect\fR extracts only area edges from the named raster input file. If the raster map contains other data (i.e., line edges, or point data) the output may be wrong. .SH BUGS For feature=line the input raster map MUST be thinned by \fIr.thin\fR; if not, \fIr.to.vect\fR may crash. .SH AUTHOR \fBPoints\fR .br Bill Brown .br .br \fBLines\fR .br Mike Baba .br DBA Systems, Inc. .br 10560 Arrowhead Drive .br Fairfax, Virginia 22030 .br .br \fBAreas\fR .br \fIOriginal\fR version of \fIr.poly\fR: .br Jean Ezell and Andrew Heekin, .br U.S. Army Construction Engineering Research Laboratory .PP \fIModified\fR program for smoothed lines: .br David Satnik, Central Washington University .br Updated 2001 by Andrea Aime, Modena, Italy .br .br \fBUpdate\fR .br Original r.to.sites, r.line and r.poly merged and updated to 5.7 by Radim Blazek .PP \fILast changed: $Date: 2008-05-16 21:09:06 +0200 (Fri, 16 May 2008) $\fR .PP Full index .PP © 2003-2011 GRASS Development Team