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