commented out prefixing of assetId with "projects/earthegine-legacy/assets/"#311
commented out prefixing of assetId with "projects/earthegine-legacy/assets/"#311bbest wants to merge 1 commit intor-spatial:masterfrom
Conversation
|
So now I see how this is weirdly specified in Asset IDs and names - Manifest Upload | Google Earth Engine | Google Developers:
However when I updated the path accordingly in the gcs_to_ee_image(
manifest_json,
overwrite = T,
quiet = F)Result in EE Tasks: So perhaps the GEE policy changed to no longer use that prefix without updating the documentation. |
|
Hi @bbest, sorry for the late reply, and thanks for the PR. I can reproduce your previous example without errors: library(rgee)
library(sf)
ee_Initialize(gcs = TRUE)
ee_x <- st_read(system.file("shape/nc.shp", package = "sf"))
#ee_utils_sak_validate(bucket = "rgeedev2")
fc_zones <- sf_as_ee(
ee_x,
via = "gcs_to_asset",
assetId = "users/csaybar/demo2",
bucket = "rgeedev2",
proj = "EPSG:4326",
monitoring = T,
quiet = F
)It seems that I'm not considering GEE project users. I will take a deep look on the weekend. Did you find a workaround?. What do you get after running this?: ee_get_assethome() |
|
Hi @csaybar, So sorry for dropping out of touch on this. Yes, I believe you identified the issue with the special treatment of user asset paths (i.e., starting with I see how this has a broader systemic implications throughout the code to accomodate. I'd like to help with this, but not sure how soon I can revisit this. PS Here's the output of: ee_get_assethome() |
Hi @saybar et al,
Thank you for this awesome package! 📦 🚀
I was having trouble uploading vector
sfpolygons into Earth Engine assets and noticed some odd prefixing of the proposed assetId with"projects/earthengine-legacy/assets/", so I commented that out, and it now works.Example with my own user-specific paths: