v.clip(1)
π v.clip β the GRASS GIS bestie that crops your vectors π
okay so this is v.clip(1) from the GRASS GIS User's Manual, and it's genuinely one of my faves β it's the "gimme just the part that overlaps" tool. let's go π¦
β¨ NAME β¨
v.clip β extracts features of input map which overlay features of clip map.
π KEYWORDS π
vector, clip, area
πΈ SYNOPSIS πΈ
v.clip
v.clip --help
v.clip [-dr] input=name clip=name output=name [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
π Flags:
-dβ Do not dissolve clip map-rβ Clip by region--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 vector map to be clipped. Or data source for direct OGR accessclip=name[required] β Name of clip vector map. Or data source for direct OGR accessoutput=name[required] β Name for output vector map
π DESCRIPTION π
so the v.clip module is literally the "cut it to shape" module π it lets you pull out those features of your input vector map that overlay features of your clip map, and then it stores all of that in a shiny new vector map. main character energy for real.
In default, boundaries of clip map are dissolved before clipping. alternatively, you can tick flag -d to retain the boundaries of the clip map. and flag -b facilitates clipping by the current computational region. π
you can clip vector maps made of points, lines, areas, or any combo of these. however β and listen bestie, this matters β the current version does not fully support clipping of mixed geometry containing points π in that case, the output map will only store clipped lines and/or areas.
β οΈ fr fr, if your map is a mix with points in it, those points are not coming to the party. output = lines and/or areas only.
π NOTES π
v.clip is a front-end to v.overlay, as well as v.select. clipping of areas and/or lines can be achieved using v.overlay. clipping of points can be performed with v.select. iykyk π§
β¨ EXAMPLES β¨
π Basic use
clip railroads by counties Wake and Johnston in North Carolina (North Carolina data set). π
v.extract input=boundary_county where="NAME=βWAKEβ OR NAME=βJOHNSTONβ" output=county_WAKE_JOHNSTON
v.clip input=railroads clip=county_WAKE_JOHNSTON output=railroads_WAKE_JOHNSTON
Figure: v.clip example - basic use
π¦ Retain boundaries of clip map
v.clip -d input=railroads clip=county_WAKE_JOHNSTON output=railroads_WAKE_JOHNSTON
π©Ί Clip by current computational region
clip hospitals by the computational region adjusted to counties Wake and Johnston in North Carolina (North Carolina data set). π₯ it is not obligatory to enter the name of the clip map. in case it is stated, the clip map will be omitted.
v.extract input=boundary_county where="NAME=βWAKEβ OR NAME=βJOHNSTONβ" output=county_WAKE_JOHNSTON
v.clip -r input=hospitals output=hospitals_clip
Figure: v.clip example - clip by computational region
π SEE ALSO π
v.overlay, v.select, v.dissolve, v.in.region
π AUTHOR π
Zofie Cimburova, GeoForAll Lab, Czech Technical University in Prague, Czech Republic
π₯ SOURCE CODE π₯
Available at: v.clip source code (history)
Accessed: Saturday Jan 17 05:41:52 2026
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
okay that's the whole page bestie, ily, go clip something iconic π β¨
GRASS 8.4.2 β v.clip(1) β that's a wrap, mwah π«Ά
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms