Create a GVector
from a vector existing in the current GRASS session.
Arguments
- src
Character: The name of the vector in GRASS.
- table
A
data.table
,data.frame
,GVector
with a table, or character. This can bedata.table(NULL)
ordata.frame(NULL)
if there is no table associated with the vector. If a character, this is interpreted as the name of the table in GRASS.- build
Logical: If
TRUE
(default), build topology using GRASS modulev.build
.- extensive
Logical: If
TRUE
, do extensive topological checks usingv.build
. The default isFALSE
.- cats
NULL
(default) or an integer vector: Values of the "cats" (categories) of the vector in GRASS. This is useful only for speeding up theGVector
creation process when the "cats" have already been ascertained.- fail
Logical: If
TRUE
(default), and the vector either has a 0 east-west or north-south extent, then exit the function with an error. Iffail
isFALSE
, then display a warning and returnNULL
.