v.db.dropcolumn1grass
Drops a column from the attribute table connected to a given vector map.
Usage
v.db.dropcolumn
v.db.dropcolumn --help
v.db.dropcolumn map=name
[layer=string]
columns=name
[,name, ...]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
vector, attribute table, database
Overview
v.db.dropcolumn drops a column from the attribute table connected to a given vector map. It automatically checks the connection for the specified layer. v.db.dropcolumn omits to delete the ’cat’ column which is relevant to keep the connection between vector map and table.
Notes
v.db.dropcolumn is a front-end to db.execute to allow easier usage.
The existing database connection(s) can be verified with v.db.connect.
Examples
Dropping a column:
g.copy vect=roadsmajor,myroadsv.info -c myroadsv.db.dropcolumn myroads column=SHAPE_LENv.info -c myroads
Source code
Available at: v.db.dropcolumn source code (history)
Accessed: Monday Feb 24 17:51:45 2025
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.