Transform a spatial object to class Raster*

gc_raster(input)

# S4 method for geom
gc_raster(input = NULL)

Arguments

input

the object to transform to class Raster*.

Value

an object of class Raster*

See also

Other spatial classes: gc_geom(), gc_sf(), gc_sp(), gc_terra()

Examples

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
#>