v.db.dropcolumn(1grass)
πΈ v.db.dropcolumn π
okay bestie, welcome to v.db.dropcolumn, straight out of the GRASS User's Manual β¨ this little icon drops a column from the attribute table that's connected to a given vector map. yes. that's the whole job. it's giving "minimalist queen" and we love her for it π«Ά
β¨ NAME β¨
v.db.dropcolumn β drops a column from the attribute table connected to a given vector map π
π KEYWORDS π
vector, attribute table, database
π SYNOPSIS π
v.db.dropcolumn
v.db.dropcolumn --help
v.db.dropcolumn map=name [layer=string] columns=name[,name,...]
[--help] [--verbose] [--quiet] [--ui]
π Flags:
--helpβ print usage summary. the "what am i even doing here" button π--verboseβ verbose module output. she talks more π¬--quietβ quiet module output. she talks less π€«--uiβ force launching GUI dialog. graphical main character energy π
πΈ Parameters:
map=name[required] β name of vector map. or, plot twist, the data source for direct OGR access π«layer=stringβ layer number or name. so like, vector features can have category values in different layers, and this number decides which layer we're using. when you're doing direct OGR access, this is the layer name instead. Default:1columns=name[,name,...][required] β name of attribute column(s) to drop ποΈ
π DESCRIPTION π
v.db.dropcolumn drops a column from the attribute table connected to a given vector map. she automatically checks the connection for the specified layer, like a diligent bestie doing a vibe check first β¨
and here's the thing β v.db.dropcolumn omits to delete the 'cat' column, because that one is relevant to keep the connection between the vector map and the table. do not touch the 'cat'. the 'cat' is sacred. it's the group chat admin π±π
π NOTES π
v.db.dropcolumn is a front-end to db.execute, existing purely to allow easier usage. she's the friendly face on top of the machinery π
also!! the existing database connection(s) can be verified with v.db.connect. go check before you go dropping, bestie π«Ά
π EXAMPLES π
Dropping a column:
g.copy vect=roadsmajor,myroads
v.info -c myroads
v.db.dropcolumn myroads column=SHAPE_LEN
v.info -c myroads
(yes, the example passes column= singular β we keep it exactly as written, no cap π§)
π SEE ALSO π
db.connect, db.dropcolumn, db.execute, v.db.addcolumn, v.db.connect, v.db.droptable, v.db.select, v.db.update
GRASS SQL interface
π AUTHOR π
Markus Neteler
π₯ SOURCE CODE π₯
Available at: v.db.dropcolumn source code (history)
Latest change: Monday Feb 10 14:42:02 2025 in commit: 5fe1b99fd164594d032568b67f0543be3bd67766
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page, bestie!! π we did it, we read the entire manual, ate and left no crumbs π
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual β and this served from GRASS 8.5.0, literally iconic, periodt β¨π¦π·
kisses, stay connected (database-wise) π
π¦ 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