1v.db.dropcolumn(1) GRASS GIS User's Manual v.db.dropcolumn(1)
2
3
4
6 v.db.dropcolumn - Drops a column from the attribute table connected to
7 a given vector map.
8
10 vector, attribute table, database
11
13 v.db.dropcolumn
14 v.db.dropcolumn --help
15 v.db.dropcolumn map=name [layer=string] columns=name[,name,...]
16 [--help] [--verbose] [--quiet] [--ui]
17
18 Flags:
19 --help
20 Print usage summary
21
22 --verbose
23 Verbose module output
24
25 --quiet
26 Quiet module output
27
28 --ui
29 Force launching GUI dialog
30
31 Parameters:
32 map=name [required]
33 Name of vector map
34 Or data source for direct OGR access
35
36 layer=string
37 Layer number or name
38 Vector features can have category values in different layers. This
39 number determines which layer to use. When used with direct OGR ac‐
40 cess this is the layer name.
41 Default: 1
42
43 columns=name[,name,...]Â [required]
44 Name of attribute column(s) to drop
45
47 v.db.dropcolumn drops a column from the attribute table connected to a
48 given vector map. It automatically checks the connection for the speci‐
49 fied layer. v.db.dropcolumn omits to delete the ’cat’ column which is
50 relevant to keep the connection between vector map and table.
51
53 v.db.dropcolumn is a front-end to db.execute to allow easier usage.
54
55 The existing database connection(s) can be verified with v.db.connect.
56
58 Dropping a column:
59 g.copy vect=roadsmajor,myroads
60 v.info -c myroads
61 v.db.dropcolumn myroads column=SHAPE_LEN
62 v.info -c myroads
63
65 db.connect, db.dropcolumn, db.execute, v.db.addcolumn, v.db.connect,
66 v.db.droptable, v.db.select, v.db.update
67
68 GRASS SQL interface
69
71 Markus Neteler
72
74 Available at: v.db.dropcolumn source code (history)
75
76 Accessed: Saturday Jan 21 21:17:03 2023
77
78 Main index | Vector index | Topics index | Keywords index | Graphical
79 index | Full index
80
81 © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
82
83
84
85GRASS 8.2.1 v.db.dropcolumn(1)