Description Usage Arguments Value See Also Examples
Create a zip file from a sf object
1 2 3 4 5 | ee_utils_shp_to_zip(
x,
filename,
SHP_EXTENSIONS = c("dbf", "prj", "shp", "shx")
)
|
x |
sf object |
filename |
data source name |
SHP_EXTENSIONS |
file extension of the files to save into the zip file. By default: "dbf", "prj", "shp", "shx". |
Character. The full path of the zip file created.
Other ee_utils functions:
ee_utils_py_to_r()
,
ee_utils_pyfunc()
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(rgee)
library(sf)
ee_Initialize(gcs = TRUE)
# Create sf object
nc <- st_read(system.file("shape/nc.shp", package="sf"))
zipfile <- ee_utils_shp_to_zip(nc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.