Transform a spatial object to class Spatial

gc_sp(input, ...)

# S4 method for geom
gc_sp(input = NULL)

Arguments

input

the object to transform to class Spatial.

...

other arguments.

Value

an object of class Spatial

See also

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

Examples

gc_sp(input = gtGeoms$point)
#> class       : SpatialPoints 
#> features    : 9 
#> extent      : -34.64102, 34.64102, -40, 40  (xmin, xmax, ymin, ymax)
#> crs         : NA 

gc_sp(input = gtGeoms$line)
#> class       : SpatialLines 
#> features    : 2 
#> extent      : -34.64102, 34.64102, -40, 40  (xmin, xmax, ymin, ymax)
#> crs         : NA 

gc_sp(input = gtGeoms$polygon)
#> class       : SpatialPolygons 
#> features    : 2 
#> extent      : -34.64102, 34.64102, -40, 40  (xmin, xmax, ymin, ymax)
#> crs         : NA