NAME

v.category - Attach, delete or report vector categories.

SYNOPSIS

v.category
v.category help
v.category input=string [output=string] [type=string[,string,...]] [option=string] [cat=integer] [field=integer[,integer,...]] [step=integer]

Parameters:

input=string
Name of input vector
output=string
Name of output vector
type=string
Select type: point, line, boundary, centroid or area
Options: point,line,boundary,centroid,area
Default: point,line,boundary,centroid,area
option=string
Action to be done:
add - add a new category
del - delete category
chfield - change field number (e.g. field=3,1 changes all fields 3 to field 1)
sum - add the value specified by cat option to the current category value
report - print report (statistics)
print - print category values
Options: add,del,chfield,sum,report,print
Default: add
cat=integer
Category value
Default: 1
field=integer
Field value
Default: 1
step=integer
Category increment
Default: 1

DESCRIPTION

v.category attaches, deletes or reports vector categories.

EXAMPLES

1) Report vector categories
v.category in=testmap option=report
FIELD 1:
type       count        min        max
point          0          0          0
line        1379          1       1379
boundary       0          0          0
centroid       0          0          0
area           0          0          0
all         1379          1       1379

2) Delete all vector categories in field 1
v.category in=testmap out=outmap option=del

3) Add vector categories in field 1 with step=2
v.category in=outmap out=stepmap option=add step=2

FIELD 1:
type       count        min        max
point          0          0          0
line        1379          1       2757
boundary       0          0          0
centroid       0          0          0
area           0          0          0
all         1379          1       2757

4) Add categories/centroids to a vector map without categories
v.category in=wkt out=wktnew option=add

Results can be tested using d.what.vect.

AUTHOR

Radim Blazek, ITC-Irst, Trento, Italy

Last changed: $Date: 2003/08/18 13:40:36 $


Help Index