Methods for retrieving the geometry from a composite (geometry + attributes) object
Methods for retrieving the geometry from a composite (geometry + attributes) object
geometry retrieves the SpatialXxx object from a SpatialXxxDataFrame object, with Xxx Lines, Points, Polygons, Grid, or Pixels. geometry<- converts a data.frame into a Spatial object.
methods
geometry(obj)geometry(obj)<- value
Arguments
obj: in case of assignment, a data.frame, else an object of class Spatial