1v.db.dropcolumn(1) Grass 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
40 access 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 GRASS SQL interface
68
70 Markus Neteler
71
72 Last changed: $Date: 2011-11-08 22:24:20 +0100 (Tue, 08 Nov 2011) $
73
75 Available at: v.db.dropcolumn source code (history)
76
77 Main index | Vector index | Topics index | Keywords index | Graphical
78 index | Full index
79
80 © 2003-2019 GRASS Development Team, GRASS GIS 7.6.0 Reference Manual
81
82
83
84GRASS 7.6.0 v.db.dropcolumn(1)