Transform a spatial object to class SpatRaster

gc_terra(input)

# S4 method for geom
gc_terra(input = NULL)

Arguments

input

the object to transform to class SpatRaster.

Value

an object of class SpatRaster

See also

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

Examples

gc_terra(input = gtGeoms$grid$categorical)
#> class       : SpatRaster 
#> dimensions  : 56, 60, 1  (nrow, ncol, nlyr)
#> resolution  : 1, 1  (x, y)
#> extent      : 0, 60, 0, 56  (xmin, xmax, ymin, ymax)
#> coord. ref. : lon/lat WGS 84 
#> source      : memory 
#> name        :   cover 
#> min value   :  arable 
#> max value   : wetland