v.buffer(1)

πŸ’– v.buffer(1) β€” the GRASS GIS manual, but make it cute πŸ’–

okay bestie, sit down, hydrate, because we're about to talk about the one and only v.buffer from the GRASS GIS User's Manual. yes that GRASS. the GIS one. iconic behavior.


✨ NAME ✨

v.buffer β€” Creates a buffer around vector features of given type.

🏷️ KEYWORDS 🏷️

vector, buffer, area, circle, geometry, line, grow, shrink


πŸŽ€ SYNOPSIS πŸŽ€

v.buffer
v.buffer --help
v.buffer [-sct] input=name  [layer=string]   [cats=range]
[where=sql_query]   [type=string[,string,...]]  output=name
[distance=float]   [minordistance=float]   [angle=float]   [column=name]
[scale=float]   [tolerance=float]   [--overwrite]  [--help]  [--verbose]
[--quiet]  [--ui]

🚩 Flags 🚩

  • -s β€” Make outside corners straight
  • -c β€” Do not make caps at the ends of polylines
  • -t β€” Transfer categories and attributes
  • --overwrite β€” Allow output files to overwrite existing files
  • --help β€” Print usage summary
  • --verbose β€” Verbose module output
  • --quiet β€” Quiet module output
  • --ui β€” Force launching GUI dialog

🧸 Parameters 🧸

  • input=name [required] β€” Name of input vector map. Or data source for direct OGR access.
  • layer=string β€” Layer number or name ('-1' for all layers). A single vector map can be connected to multiple database tables. This number determines which table to use. When used with direct OGR access this is the layer name. Default: -1
  • cats=range β€” Category values. Example: 1,3,7-9,13
  • where=sql_query β€” WHERE conditions of SQL statement without 'where' keyword. Example: income < 1000 and population >= 10000
  • type=string[,string,...] β€” Input feature type. Options: point, line, boundary, centroid, area. Default: point,line,area
  • output=name [required] β€” Name for output vector map
  • distance=float β€” Buffer distance along major axis in map units
  • minordistance=float β€” Buffer distance along minor axis in map units
  • angle=float β€” Angle of major axis in degrees. Default: 0
  • column=name β€” Name of column to use for buffer distances
  • scale=float β€” Scaling factor for attribute column values. Default: 1.0
  • tolerance=float β€” Maximum distance between theoretical arc and polygon segments as multiple of buffer (default 0.01)

🌸 DESCRIPTION 🌸

So v.buffer creates a buffer around features of given type, which have a category in the given layer. and the tolerance? it controls the number of vector segments being generated β€” the smaller the value, the more vector segments get generated. lowkey more segments, more detail. πŸ’…


πŸ“ NOTES πŸ“

Internal buffers for areas can be generated with negative distance values (that's your "inward buffer" / "negative buffer" / "shrinking" era 🫢).

v.buffer fusions the geometries of buffers by default. and no, categories and attribute table will not be transferred β€” because that would not make sense, bestie, since one buffer geometry can be the result of many different input geometries. πŸ’€

but if you DO want to transfer the categories and attributes, set the -t flag. what happens then? the buffers get cut up where buffers of individual input geometries overlap. Each part that is the result of overlapping buffers of multiple geometries will have multiple categories corresponding to those geometries, and multiple buffer areas can have the same category. so the buffer for the input feature with category X can be retrieved by selecting all buffer areas with category X (there's an example further down, iykyk πŸ‘€).

Buffers for lines and areas are generated using the algorithms from the GEOS library.

okay advanced users, this one's for you: the built-in buffer algorithm is no longer used, as we use GEOS instead. but if GRASS was not compiled with GEOS support, or the environmental variable GRASS_VECTOR_BUFFER is defined, then GRASS generates buffers using the built-in buffering algorithm β€” which is still buggy for some input data. not me hyping up the buggy fallback πŸ™ˆ just telling you the truth.

The options minordistance, angle, tolerance are kept for backward compatibility and have no effect with GEOS buffering. periodt.

🧚 Corner settings 🧚

The following vector line related corners (also called "cap") exist:

  • no cap:
  • rounded cap:
  • square cap:

By default v.buffer creates rounded buffers (blue color on figure below): Straight corners with caps are created using the -s flag (red color on the figure below), while the -c flag doesn't make caps at the ends of polylines (green color on the figure below): With a point vector map as input data, square buffers are created instead of round buffers by using the -s flag. slay. ✨


πŸ”₯ EXAMPLES πŸ”₯

All examples are based on the North Carolina sample dataset. (yes, the classic.)

🌈 Buffer around input lines

v.buffer input=roadsmajor output=roadsmajor_buffer type=line distance=100

Buffer of 100m along the "roadsmajor" lines (map subset, original center line shown in black)

🌈 Circles around input points

v.buffer input=hospitals output=hospitals_circled type=point distance=2000

Buffer of 2000m around the "hospitals" points (map subset, original points shown in black, new area centroids in red)

🌈 Circles around input points with attribute transfer

v.buffer input=hospitals output=hospitals_circled type=point distance=1000 -t
# display buffer around hospital with category 36,
# this buffer is composed of several areas:
d.vect map=hospitals_circled type=area layer=1 cats=36
# extract this buffer, dissolving boundaries
v.extract in=hospitals_circled output=hospital_36_circled layer=1 cats=36 -d

🌈 Buffer around input areas

v.buffer input=lakes output=lakes_buffer type=area distance=100

Buffer of 100m around the "lakes" polygons (map subset, original areas shown in black)

🌈 Buffer inside input areas

In this example, an internal buffer ("inward buffer" or "negative buffer") is generated using a negative distance value:

v.buffer input=lakes output=lakes_buffer type=area distance=-50

Internal buffer of 50m inside the "lakes" polygons (map subset, original areas shown in black)

Not all features are buffered, only the polygons that allow creation inside a topological cleaned polygon. πŸ‘‘

πŸ“š REFERENCES πŸ“š

  • GEOS Library

πŸ‘€ SEE ALSO πŸ‘€

r.buffer, v.parallel, v.extract, v.type, v.patch, v.db.connect


πŸ‘‘ AUTHORS πŸ‘‘

  • Radim Blazek
  • Rewritten by Rosen Matev (with support through the Google Summer of Code program 2008)
  • Rewritten by Markus Metz (2011, 2012)

πŸ’» SOURCE CODE πŸ’»

Available at: v.buffer source code (history)

Accessed: Saturday Jan 17 05:41:19 2026

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index


and that's the whole page, bestie 🫢 this was the GRASS 8.4.2 Reference Manual for v.buffer, Β© 2003-2025 GRASS Development Team, and the footer says GRASS 8.4.2 with the date Saturday Jan 17 05:41:19 2026 β€” go buffer something gorgeous, you've got this πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from