I am trying to upload some large geometries to google earth engine.
This is the example code given in the ?sf_as_ee
description:
# # 3. Upload large geometries to EE asset
# ee_Initialize(gcs = TRUE)
# assetId <- sprintf("%s/%s", ee_get_assethome(), 'toy_poly_gcs')
# eex <- sf_as_ee(
# x = toy_poly,
# overwrite = TRUE,
# assetId = assetId,
# bucket = 'rgee_dev',
# monitoring = FALSE,
# via = 'gcs_to_asset'
# )
I just need to know how to set bucket
?
From description:
bucket - Character. Name of the bucket (GCS) to save intermediate files (ignore if via is not defined as "gcs_to_asset").
I think it is a local space for saving intermediate files, but I cannot get it to work with the folder I usually use for temporary files (bucket = 'tempfiles'
).
It is within my working directory, but is throwing this error:
Error in value[[3L]](cond) : The data bucket was not found.
File structure for reference: (on MacOS)
-R Project (working directory)
-- scripts
--- script
--tempfiles
I tried setting it to a google drive folder name as well thinking it might be asking for that, but it didn't work either. Any help will be much appreciated!
Thanks!