writeogr | R Documentation |
Write an ESRI Shapefile using the RGDAL library Essentially this is just a wrapper around writeVector
from the terra package.
writeogr(filename, shp, driver = "ESRI Shapefile", ...)
filename |
character string. Filename (including path) of the shapefile to be written. |
shp |
a SpatialPointsDataFrame, SpatialLinesDataFrame, or a SpatialPolygonsDataFrame object to be written as shapefile x. |
driver |
chracter string. driver used to write x. Per default this is ESRI Shapefile. |
... |
further arguments passed on to |
DEPRECATED! This wrapper splits a path to a shapefile into the dirname
and the basename
. The latter is passed
as dsn argument the first as layer argument to writeOGR
.
This now ist just a wrapper around writeVector
from the terra
package and kept for compability issues.
Simon Frey
readogr
terra::vect
#### not run ####
shapefilename <- "C:/TEMP/exampleshapefile.shp"
shapefile <- "EXAMPLE"
writeogr(x = shapefilename, shp = shapefile)
#### end not run ####
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.