NAME

v.reclass - Changes vector category values for an existing vector map according to results of SQL queries.

SYNOPSIS

v.reclass
v.reclass help
v.reclass input=string output=string [rules=string] [col=string] [type=string[,string,...]] [field=integer]

Parameters:

input=string
Name of input vector
output=string
Name of output vector
rules=string
Full path to the reclass rule file
col=string
The name of the column values of which are used as new categories. The column must be type integer.
type=string
Select type: point, line, boundary, centroid or area
Options: point,line,boundary,centroid,area
Default: point,line,boundary,centroid,area
field=integer
Field value
Default: 1

DESCRIPTION

v.db.reclass allows user to create a new vector map based on the reclassification of an existing vector map.

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

EXAMPLE

v.db.reclass input=land output=land_u type=area rules=land.rcl

the rules file contains :

# land reclass file
cat 1
where use = 'E13' and owner = 'Jara Cimrman'
cat 2
where use = 'E14'
Produces a new vector area file land_u containing 'area' boundaries from land with area category values selected from database by SQL select statement: select id from tland where use = 'E13' and owner = 'Jara Cimrman' changed to category 1; values selected from database by SQL select statement: select id from tland where use = 'E14' changed to category 2.

SEE ALSO

v.extract

AUTHOR

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

Last changed: $Date: 2003/12/04 16:22:59 $


Help Index