1v.reclass(1)                  Grass User's Manual                 v.reclass(1)
2
3
4

NAME

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

KEYWORDS

11       vector, attribute table
12

SYNOPSIS

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]
18
19   Flags:
20       --overwrite
21
22   Parameters:
23       input=name
24           Name of input vector map
25
26       output=name
27           Name for output vector map
28
29       rules=string
30           Full path to the reclass rule file
31
32       column=string
33           The name of the column values of which are used as new  categories.
34           The column must be type integer.
35
36       type=string[,string,...]
37           Select    type   Options:   point,line,boundary,centroid   Default:
38           point,line,boundary,centroid
39
40       layer=integer
41           Layer number Default: 1
42

DESCRIPTION

44       v.reclass allows user to create a new vector map based on the reclassi‐
45       fication of an existing vector map.
46       Rules file may contain on each row either pair:
47
48       keyword value
49       (separated  by  space)  or comment beginning by #(hash).  Definition of
50       new category begins with keyword cat followed by  new  category  value.
51       Keyword where specifies SQL where condition.
52

EXAMPLE

54
55       v.reclass input=land output=land_u type=boundary rules=land.rcl
56
57
58       the rules file contains :
59       # land reclass file
60       cat 1
61       where use = 'E13' and owner = 'Jara Cimrman'
62       cat 2
63       where use = 'E14'
64         Produces a new vector area map land_u containing boundaries from land
65       with area category values selected from database by SQL  select  state‐
66       ment:
67       select  id  from  tland  where  use  = 'E13' and owner = 'Jara Cimrman'
68       changed to category 1;
69       values selected from database by SQL select statement:
70       select id from tland where use = 'E14'  changed to category 2.
71

NOTES

73       No table is created for reclassed layer if column option  is  used  and
74       column  type is integer (there is nothing which could be written to the
75       table).
76
77       For dissolving common boundaries, see v.extract.
78

BUGS

80       No table is created for reclassed layer if rules option is used.
81

SEE ALSO

83       v.extract
84

AUTHOR

86       R.L. Glenn, USDA, SCS, NHQ-CGIS
87       from v.reclass to v.db.reclass and later to v.reclass in 5.7  rewritten
88       by Radim Blazek
89
90       Last changed: $Date: 2006/03/03 13:41:42 $
91
92       Full index
93
94
95
96GRASS 6.2.2                                                       v.reclass(1)
Impressum