Create a copy of a GRaster
or GVector
in GRASS. This function is used internally and is of little use to most users. This only creates a copy of the object in the GRASS session–to make a GRaster
or GVector
, .makeGRaster()
or .makeGVector()
need to be called after making the copy. Note that if the object is multi-layered, then a copy is made of each layer.
Usage
# S4 method for class 'GRaster'
.copyGSpatial(x, reshapeRegion = TRUE)
# S4 method for class 'GVector'
.copyGSpatial(x)
# S4 method for class 'character'
.copyGSpatial(x, type = NULL, topo = NULL, reshapeRegion = TRUE)
.copyGRaster(x, topo = "2D", reshapeRegion = TRUE)
.copyGVector(x)
Arguments
- x
A
GVector
or thesources()
name of one.- reshapeRegion
Logical. If
TRUE
,x
must be aGRaster
.- type
Character or
NULL
(default): Either "raster" or "vector". If a character, there must be one per value inx
. IfNULL
, will attempt to auto-detect (takes longer).- topo
"2D" or "3D"