1v.reclass(1) Grass User's Manual v.reclass(1)
2
3
4
6 v.reclass - Changes vector category values for an existing vector map
7 according to results of SQL queries or a value in attribute table col‐
8 umn.
9
11 vector, attribute table
12
14 v.reclass
15 v.reclass help
16 v.reclass input=name output=name [rules=string] [column=string]
17 [type=string[,string,...]] [layer=integer] [--overwrite] [--ver‐
18 bose] [--quiet]
19
20 Flags:
21 --overwrite
22 Allow output files to overwrite existing files
23
24 --verbose
25 Verbose module output
26
27 --quiet
28 Quiet module output
29
30 Parameters:
31 input=name
32 Name of input vector map
33
34 output=name
35 Name for output vector map
36
37 rules=string
38 Full path to the reclass rule file
39
40 column=string
41 The name of the column values of which are used as new categories.
42 The column must be type integer.
43
44 type=string[,string,...]
45 Type
46 Select type
47 Options: point,line,boundary,centroid
48 Default: point,line,boundary,centroid
49
50 layer=integer
51 Layer number
52 A single vector map can be connected to multiple database tables.
53 This number determines which table to use.
54 Default: 1
55
57 v.reclass allows user to create a new vector map based on the reclassi‐
58 fication of an existing vector map.
59 Rules file may contain on each row either pair:
60
61 keyword value
62 (separated by space) or comment beginning by #(hash). Definition of
63 new category begins with keyword cat followed by new category value.
64 Keyword where specifies SQL where condition.
65
67
68 v.reclass input=land output=land_u type=boundary rules=land.rcl
69
70
71 the rules file contains :
72 # land reclass file
73 cat 1
74 where use = 'E13' and owner = 'Jara Cimrman'
75 cat 2
76 where use = 'E14'
77 Produces a new vector area map land_u containing boundaries from land
78 with area category values selected from database by SQL select state‐
79 ment:
80 select id from tland where use = 'E13' and owner = 'Jara Cimrman'
81 changed to category 1;
82 values selected from database by SQL select statement:
83 select id from tland where use = 'E14' changed to category 2.
84
86 No table is created for reclassed layer if column option is used and
87 column type is integer (there is nothing which could be written to the
88 table).
89
90 For dissolving common boundaries, see v.extract.
91
93 No table is created for reclassed layer if rules option is used.
94
96 v.dissolve, v.extract, v.reclass, GRASS SQL interface
97
99 R.L. Glenn, USDA, SCS, NHQ-CGIS
100 from v.reclass to v.db.reclass and later to v.reclass in 5.7 rewritten
101 by Radim Blazek
102
103 Last changed: $Date: 2007-05-18 10:30:19 +0200 (Fri, 18 May 2007) $
104
105 Full index
106
107 © 2003-2008 GRASS Development Team
108
109
110
111GRASS 6.3.0 v.reclass(1)