Transform a spatial object to class Raster*
gc_raster(input) # S4 method for geom gc_raster(input = NULL)
input | the object to transform to class |
---|
an object of class Raster*
gc_raster(input = gtGeoms$grid$categorical) #> class : RasterLayer #> dimensions : 56, 60, 3360 (nrow, ncol, ncell) #> resolution : 1, 1 (x, y) #> extent : 0, 60, 0, 56 (xmin, xmax, ymin, ymax) #> crs : NA #> source : memory #> names : layer #> values : 1, 47 (min, max) #> attributes : #> gid cover #> from: 1 lake #> to : 47 mixed forest #>