Function to get extent from a "sources" name of a raster or vector
Arguments
- x
A
GRaster
,GSpatial
, or a character (sources()
name of aGRaster
orGVector
).- rastOrVect
Either
NULL
(class taken fromx
, butx
cannot be a character), or "raster
" or "vector
" (partial matching is used).