v.extrude(1grass)
π v.extrude β the manual, but make it cute π
okay so bestie, you know how 2D stuff is justβ¦ lying there, flat, no drama, no verticality? π v.extrude is literally the glow-up module. It's part of the GRASS User's Manual (yes, that's the manual name, we're folding it in like a lil name tag π), and it takes your flat vector features and gives them HEIGHT. Iconic behaviour.
KEYWORDS: vector, geometry, sampling, 3D β¨
π SYNOPSIS π
v.extrude
v.extrude --help
v.extrude [-t] input=name [layer=string] [cats=range]
[where=sql_query] [type=string[,string,...]] output=name
[zshift=float] [height=float] [height_column=name]
[elevation=name] [method=string] [scale=float] [null_value=float]
[--overwrite] [--help] [--verbose] [--quiet] [--ui]
β¨ Flags β¨
-tβ Trace elevation. it's giving "show me the receipts" for your elevation values π--overwriteβ Allow output files to overwrite existing files (yes, it will absolutely replace what's already there, consent given π )--helpβ Print usage summary--verboseβ Verbose module output (chatty mode, we love a talker π£οΈ)--quietβ Quiet module output (shhh, no thoughts, just vibes π€«)--uiβ Force launching GUI dialog
πΈ Parameters πΈ
input=name[required] β Name of input vector map. Or, plot twist, a 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, and this number determines which table to use. When used with direct OGR access, this is the layer name. Default:-1cats=rangeβ Category values. Example:1,3,7-9,13where=sql_queryβ WHERE conditions of SQL statement withoutβwhereβkeyword. Example:income < 1000 and population >= 10000type=string[,string,...]β Input feature type. Options:point,line,area. Default:point,line,areaoutput=name[required] β Name for output vector map πzshift=floatβ Shifting value for z coordinates. Default:0height=floatβ Fixed height for 3D vector featuresheight_column=nameβ Name of attribute column with feature heightelevation=nameβ Elevation raster map for height extractionmethod=stringβ Sampling interpolation method. Options:nearest,bilinear,bicubic. Default:nearestnearest: Nearest-neighbor interpolationbilinear: Bilinear interpolationbicubic: Bicubic interpolation
scale=floatβ Scale factor sampled raster values. Default:1.0null_value=floatβ Height for sampled raster NULL values
π DESCRIPTION π
v.extrude creates faces, kernels or 3D lines based on input 2D vector features, no cap. Points get converted to 3D vertical lines, lines become faces, and areas become volumes (which is a composition of a closed set of faces and a kernel, very β¨structuralβ¨ of them).
If the elevation parameter is used, then the 3D vector features follow the elevation model by using individual elevation values for the vertices. The height for vertices is interpolated from the elevation raster map using the given interpolation method. it's giving bespoke, made-to-measure z-values π§
π NOTES π
So, v.extrude extrudes vector features, which means points are converted to vertical lines. Lines and area boundaries are extruded to a set of faces, and each segment defines one face. Area centroids are written as kernels. An area as a composition of boundaries and centroid is stored as a closed set of faces and kernel which define a volume. main character geometry energy, fr fr π₯
For conversion of 2D points or lines to 3D you can also use v.to.3d or v.drape. In opposite to v.extrude, these modules do not extrude vector features β they define z-coordinate for the features from given parameters or by sampling elevation raster map values. It means that no feature type conversion is applied, and points remain still points in the output vector map. Same applies for the lines. So like, they're not doing the glow-up, they're just assigning a height, iykyk.
v.extrude modifies only features geometry. Feature categories remain untouched and attribute data is copied from input vector map to the output. no notes, we respect the originals π«Ά
By default, all features (including features without category) from input vector map are processed (layer=-1). Feature selection can be applied by layer, cats or where parameter.
π EXAMPLES π
π 3D houses with fixed height
v.extrude input=houses output=houses3D height=5 type=area
ποΈ 3D houses with individual height
v.extrude input=houses output=houses3D elevation=dem height_column=height type=area
π Convert 2D points to 3D vertical lines with fixed height
v.extrude input=geodetic_pts output=points3D height=200 type=point
π¦ SEE ALSO π¦
v.transform,v.drape,v.to.3d- wxGUI 3D viewer
π AUTHORS π
Jachym Cepicky, Updated for GRASS 7 by Martin Landa, FBK-irst, Italy and Czech Technical University in Prague, Czech Republic
π SOURCE CODE π
Available at: v.extrude source code (history)
Latest change: Friday May 09 14:33:40 2025 in commit: b356c7e108fcbeca77474c8e83ebec8f1e7b3e4a
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page bestie, every flag, every default, every path β nothing skipped, nothing invented, periodt π β¨
kisses, this was v.extrude(1grass) from the GRASS User's Manual πΈ β Β© 2003-2026 GRASS Development Team, from the GRASS 8.5.0 Reference Manual. ok bye, go extrude something iconic π«ΆπΊ
π¦ 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