v.db.dropcolumn(1grass)

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,myroads
v.info -c myroads
v.db.dropcolumn myroads column=SHAPE_LEN
v.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.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Markus Neteler

From grass-doc 8.4.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.