ee_utils_shp_to_zip: Create a zip file from an sf object

View source: R/ee_utils.R

ee_utils_shp_to_zipR Documentation

Create a zip file from an sf object

Description

Create a zip file from an sf object

Usage

ee_utils_shp_to_zip(
  x,
  filename,
  SHP_EXTENSIONS = c("dbf", "prj", "shp", "shx")
)

Arguments

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".

Value

Character. The full path of the created zip file.

See Also

Other ee_utils functions: ee_utils_py_to_r(), ee_utils_pyfunc()

Examples

## 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)

r-spatial/rgee documentation built on July 4, 2024, 9:33 a.m.