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 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>
|