File: description.html

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (56 lines) | stat: -rw-r--r-- 1,674 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<H2>DESCRIPTION</H2>

<EM>v.reclass</EM> allows user to create a new vector map based on the reclassification 
of an existing vector map.  

<BR><BR>
Rules file may contain on each row either pair: <BR> 
<I>keyword&nbsp;value</I> <BR>
(separated by space) or comment beginning by #(hash). 
Definition of new category begins with keyword <I>cat</I> followed by new category value.
Keyword <I>where</I> specifies SQL where condition.

<H2>EXAMPLE</H2>

<B>v.reclass input=</B><EM>land</EM> <B>output=</B><EM>land_u</EM>
<B>type=</B><EM>boundary</EM>
                 <B>rules=</B><EM>land.rcl</EM>

<P>
the rules file contains :
<PRE>
# land reclass file
cat 1
where use = 'E13' and owner = 'Jara Cimrman'
cat 2
where use = 'E14'
</PRE>
Produces a new vector area map <EM>land_u</EM> containing boundaries from <EM>land</EM> with area category values selected 
from database by SQL select statement: <br>
<I>select id from tland where use = 'E13' and owner = 'Jara Cimrman' </I> changed to category 1;
<br>
values selected from database by SQL select statement: <br>
<I>select id from tland where use = 'E14' </I> changed to category 2.

<BR>

<P>
<H2>NOTES</H2>
No table is created for reclassed layer if <B>column</B> option is used and column type is
integer (there is nothing which could be written to the table).

<P>
<H2>BUGS</H2>
No table is created for reclassed layer if <B>rules</B> option is used.

<P>
<H2>SEE ALSO</H2>

<EM><A HREF="v.extract.html">v.extract</A></EM>

<H2>AUTHOR</H2>

R.L. Glenn, USDA, SCS, NHQ-CGIS<BR>
from v.reclass to v.db.reclass and later to v.reclass in 5.7 rewritten by Radim Blazek

<p><i>Last changed: $Date: 2005/02/09 08:52:38 $</i>