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 access
  • clip=name [required] β€” Name of clip vector map. Or data source for direct OGR access
  • output=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