View source: R/utils_spatial_io.R
write_spatial_data | R Documentation |
Write spatial data to disk.
write_spatial_data(x, dir, name)
x |
|
dir |
|
name |
|
Invisible TRUE
indicating success.
# read and write raster data
f1 <- system.file("external/rlogo.grd", package = "raster")
d1 <- read_spatial_data(f1)
write_spatial_data(d1, tempdir(), "rlogo")
# read and write vector data
f2 <- system.file("shape/nc.shp", package = "sf")
d2 <- read_spatial_data(f2)
write_spatial_data(d2, tempdir(), "nc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.