shapefile {raster} | R Documentation |
Reading and writing of "ESRI shapefile" format spatial data. Only the three vector types (points, lines, and polygons) can be stored in shapefiles. These are simple wrapper functions around readOGR and writeOGR (rgdal package).
## S4 method for signature 'character' shapefile(x, stringsAsFactors=FALSE, verbose=FALSE, ...) ## S4 method for signature 'Spatial' shapefile(x, filename='', overwrite=FALSE, ...)
x |
character (a file name, when reading a shapefile) or Spatial* object (when writing a shapefile) |
filename |
character. Filename to write a shapefile |
overwrite |
Logical. Overwrite existing shapefile? |
verbose |
Logical. If |
stringsAsFactors |
Logical. If |
... |
Additional arguments passed to rgdal functions readOGR or writeOGR |
Spatial*DataFrame (reading). Nothing is returned when writing a shapefile.