other versions
- jessie 6.4.4-1
- stretch 7.2.0-2
- testing 7.6.0-1
- unstable 7.6.0-1
- experimental 7.6.1-1~exp1
v.category(1grass) | Grass User's Manual | v.category(1grass) |
NAME¶
v.category - Attach, delete or report vector categories to map geometry.KEYWORDS¶
vector, categorySYNOPSIS¶
v.categoryFlags:¶
- -g
-
- --overwrite
-
- --verbose
-
- --quiet
-
Parameters:¶
- input=name
-
- output=name
-
- option=string
-
- type=string[,string,...]
-
- layer=integer[,integer,...]
-
- ids=range
-
- cat=integer
-
- step=integer
-
DESCRIPTION¶
v.category attaches, deletes or reports vector categories to map geometry. These categories (IDs) are used to link geometry object(s) to attribute records (from attribute table linked to vector map).NOTES¶
Use v.to.db to upload related categories to a linked attribute table. The type parameter specifies the type of geometry objects to which the category is added; it is similar to an input filter - only the geometry specified in 'type' is processed. If the type parameter is set to centroid and the option parameter set to add, new categories will be added to existing centroids. Note however, that new centroids cannot be created this way. To do so, they must be added manually using v.digit or by running v.category with the type parameter set to area. Areas are a special case because it is impossible to attach a cat to an area without a centroid; in this case, the module places new centroids in areas automatically. The cat parameter is only used with option=add and option= sum. The ids parameter specifies the list of feature IDs to which the operation is performed; by default, all vector feature ids are processed. The feature ID is an internal (unique) geometry ID that all vector primitives possess, and is separate from any category the feature may also possess.v.edit map=inputname tool=select
EXAMPLES¶
Report vector categories¶
Delete all vector categories in layer 1¶
Add vector categories in layer 1 with step=2¶
Add categories/centroids to a vector map without categories¶
Print vector categories of given layer¶
Print vector categories from the first layer, only for feature ids 1-50.SEE ALSO¶
v.centroids, v.db.connect, v.edit, v.to.dbAUTHOR¶
Radim Blazek, ITC-irst, Trento, ItalyGRASS 6.4.4 |