.TH v.buffer 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBv.buffer\fR\fR - Creates a buffer around vector features of given type. .SH KEYWORDS vector, buffer, geometry .SH SYNOPSIS \fBv.buffer\fR .br \fBv.buffer help\fR .br \fBv.buffer\fR [\-\fBsct\fR] \fBinput\fR=\fIname\fR [\fBlayer\fR=\fIinteger\fR] [\fBcats\fR=\fIrange\fR] [\fBwhere\fR=\fIsql_query\fR] [\fBtype\fR=\fIstring\fR[,\fIstring\fR,...]] \fBoutput\fR=\fIname\fR [\fBdistance\fR=\fIfloat\fR] [\fBminordistance\fR=\fIfloat\fR] [\fBangle\fR=\fIfloat\fR] [\fBbufcolumn\fR=\fIname\fR] [\fBscale\fR=\fIfloat\fR] [\fBtolerance\fR=\fIfloat\fR] [\-\-\fBoverwrite\fR] [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Flags: .IP "\fB\-s\fR" 4m .br Make outside corners straight .IP "\fB\-c\fR" 4m .br Don't make caps at the ends of polylines .IP "\fB\-t\fR" 4m .br Transfer categories and attributes .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 vector map .IP "\fBlayer\fR=\fIinteger\fR" 4m .br Layer number .br A single vector map can be connected to multiple database tables. This number determines which table to use. .br Default: \fI1\fR .IP "\fBcats\fR=\fIrange\fR" 4m .br Category values .br Example: 1,3,7-9,13 .IP "\fBwhere\fR=\fIsql_query\fR" 4m .br WHERE conditions of SQL statement without 'where' keyword .br Example: income = 10000 .IP "\fBtype\fR=\fIstring[,\fIstring\fR,...]\fR" 4m .br Feature type .br Options: \fIpoint,line,boundary,centroid,area\fR .br Default: \fIpoint,line,area\fR .IP "\fBoutput\fR=\fIname\fR" 4m .br Name for output vector map .IP "\fBdistance\fR=\fIfloat\fR" 4m .br Buffer distance along major axis in map units .IP "\fBminordistance\fR=\fIfloat\fR" 4m .br Buffer distance along minor axis in map units .IP "\fBangle\fR=\fIfloat\fR" 4m .br Angle of major axis in degrees .br Default: \fI0\fR .IP "\fBbufcolumn\fR=\fIname\fR" 4m .br Name of column to use for buffer distances .IP "\fBscale\fR=\fIfloat\fR" 4m .br Scaling factor for attribute column values .br Default: \fI1.0\fR .IP "\fBtolerance\fR=\fIfloat\fR" 4m .br Maximum distance between theoretical arc and polygon segments as multiple of buffer .br Default: \fI0.01\fR .PP .SH DESCRIPTION \fIv.buffer\fR creates a buffer around features of given \fBtype\fR, which have a category in the given \fBlayer\fR. The \fBtolerance\fR controls the number of vector segments being generated (the smaller the value, the more vector segments are generated). .SH NOTES Internal buffers for areas can be generated with negative distance values ("inward buffer" or "negative buffer"). Attributes are not transferred due to potential buffer overlap, which cannot be resolved automatically. .PP Buffers for lines and areas are generated using the algorithms from the GEOS library. .SH EXAMPLES All examples are based on the North Carolina sample dataset. .SS Buffer around input lines \fC .DS .br v.buffer input=roadsmajor output=roadsmajor_buffer type=line distance=100 .br .DE \fR Buffer of 100m along the "roadsmajor" lines (map subset, original center line shown in black) .SS Circles around input points \fC .DS .br v.buffer input=hospitals output=hospitals_circled type=point distance=2000 .br .DE \fR Buffer of 2000m around the "hospitals" points (map subset, original points shown in black, new area centroids in red) .SS Overlapping circles around input points with attribute transfer \fC .DS .br # copy map to current mapset (for easier DB linking) .br g.copy vect=hospitals,myhospitals .br v.buffer input=myhospitals output=circles type=point distance=2000 .br # change original points to centroids: .br v.type in=myhospitals out=hospital_centroids type=point,centroid .br # patch circles and centroids: .br v.patch in=hospital_centroids,circles out=circles_db .br # attach attributes, either use db.copy or link to the original table: .br v.db.connect map=circles_db table=myhospitals layer=1 key=cat driver=dbf \(rs .br database='$GISDBASE/$LOCATION_NAME/$MAPSET/dbf' .br v.db.select circles_db .br .DE \fR .SS Buffer around input areas \fC .DS .br v.buffer input=lakes output=lakes_buffer type=area distance=100 .br .DE \fR Buffer of 100m around the "lakes" polygons (map subset, original areas shown in black) .SH REFERENCE .RS .IP GEOS Library .RE .SH SEE ALSO \fI r.buffer, v.parallel, v.extract, v.type, v.patch, v.db.connect \fR .SH AUTHORS Radim Blazek .br Rewritten by Rosen Matev (with support through the Google Summer of Code program 2008) .br Rewritten by Markus Metz (2011, 2012) .PP \fILast changed: $Date: 2014-04-30 18:19:24 +0200 (Wed, 30 Apr 2014) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team