R/vector_ee.R
pol_as_ee.Rd
A function that transform polygon to featurecollection.
pol_as_ee(x, id, simplify = 500)
polygon sf object.
the main id name in sf object.
number to simplify the sf polygon keeping its topology
feature collection
if (FALSE) { library(tidyverse) library(rgee) library(innovar) library(sf) ee_Initialize() # 1. Reading a sf object data("Peru") region <- Peru %>% filter(reg == 'LIMA') region_ee <- pol_as_ee(region , id = 'distr' , simplify = 1000) class(region_ee) }