v.hull(1grass)
π v.hull β the GRASS User's Manual glow-up π
okay bestie, sitteth down, because we're doing v.hull (that's the 1grass manual, the GRASS one, not some random hull) and it is genuinely so good. she makes 2D/3D convex hulls for a vector map and she does it flawlessly. no cap. π
β¨ NAME β¨
v.hull β produces a 2D/3D convex hull for a given vector map. that's it. that's the girl. π
π·οΈ KEYWORDS π·οΈ
vector, geometry, 3D β iykyk πΈ
π SYNOPSIS π
v.hull
v.hull --help
v.hull [-rf] input=name [layer=string] output=name [cats=range]
[where=sql_query] [--overwrite] [--help] [--verbose] [--quiet]
[--ui]
π© Flags π©
-rβ Limit to current region. stay in your lane babe π«Ά-fβ Create a'flat'2D hull even if the input is 3D points. sometimes u just want the flat lay π--overwriteβ Allow output files to overwrite existing files. yes, she will absolutely replace what's there, be warned π--helpβ Print usage summary--verboseβ Verbose module output. she will tell u EVERYTHING π--quietβ Quiet module output. she's giving mysterious π--uiβ Force launching GUI dialog
π Parameters π
input=name[required] β Name of input vector map. or a data source for direct OGR access, if that's the vibe β¨layer=stringβ Layer number or name ('-1'for all layers). one single vector map can be connected to multiple database tables, and this number decides which table gets used. when you're doing direct OGR access, this is literally the layer name. Default:-1output=name[required] β Name for output vector map πcats=rangeβ Category values. Example:1,3,7-9,13where=sql_queryβ WHERE conditions of SQL statement without the'where'keyword. Example:income < 1000 and population >= 10000
π« DESCRIPTION π«
okay so v.hull computes the convex hull of a vector map and outputs that convex hull polygon as a vector area map. the convex hull β aka the convex envelope β for an object or a whole set of objects is the minimal convex set that contains the given objects. this module creates a vector polygon that contains all the vector points or lines of the input map. all of them. no leftovers. periodt. π
and if the input points are 3D? the hull is gonna be 3D as well, unless u specify the -f flag (then it's flat, as discussed). and the 3D hull will be composed of triangular faces πΊ iconic.
Fig: Convex hull polygon created with v.hull
π NOTES π
in order to use the where option, bestie, the layer option must be set to a positive number (the default is '-1' for 'all layers'). otherwise all points from all layers get used, and the cats and where options are just... ignored. like hello?? get ignored ig π so set that layer properly!!
π§ͺ EXAMPLE π§ͺ
Example of v.hull 3D output (using two random 3D point clouds, North Carolina sample data set):
g.region rural_1m -p
r.mapcalc "zero = 0"
v.random -z output=random3d_a n=10 zmin=0 zmax=200
v.random -z output=random3d_b n=15 zmin=400 zmax=600
v.hull input=random3d_a output=random3d_a_hull
v.hull input=random3d_b output=random3d_b_hull
d.mon wx0
d.vect random3d_a_hull
d.vect random3d_a color=red
d.vect random3d_b_hull
d.vect random3d_b color=red
# 3D view in wxGUI (g.gui)
Fig: Convex hull in 3D from 3D points created with v.hull
π REFERENCES π
- M. de Berg, M. van Kreveld, M. Overmars, O. Schwarzkopf, (2000). Computational geometry, chapter 1.1, 2-8.
- J. O'Rourke, (1998). Computational Geometry in C (Second Edition), chapter 4.
π SEE ALSO π
v.delaunay β the sibling, go say hi π¦
π«Ά AUTHORS π«Ά
- Andrea Aime, Modena, Italy
- Markus Neteler, ITC-irst (update to 5.7)
- Benjamin Ducke, CAU Kiel (3D hull support)
- Martin Landa, CTU in Prague, Czech Republic (vector lines support)
π SOURCE CODE π
Available at: v.hull source code (history)
Latest change: Friday Aug 08 09:39:19 2025 in commit: ed72c71d8580e872cd6fd345c84a15c324764465
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
and that's the whole thing bestie π run her, love her, respect the layer option fr fr. this was the GRASS 8.5.0 Reference Manual β Β© 2003-2026 GRASS Development Team β and yeah, the page is v.hull(1grass) under GRASS 8.5.0. slay β¨ππ
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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