Returns values in the cat column of a vector in GRASS.
Arguments
- x
A
GVectoror the name of a vector in GRASS.- layer
Integer, numeric integer, or character: Layer from which to obtain category values.
- db
Logical: If
TRUE, return category numbers from the database table associated with the vector. IfFALSE(default), return category numbers from the actual vector.- integer
Logical: If
TRUE(default), return category values as integers. In some cases, a geometry can have multiple categories, in which caseNAis returned. IfFALSE, return category values as strings (and thus, if a geometry has more than one category, does not convert toNA).
