Transform a spatial object to class Spatial
gc_sp(input, ...) # S4 method for geom gc_sp(input = NULL)
input | the object to transform to class |
---|---|
... | other arguments. |
an object of class Spatial
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