- Notifications
You must be signed in to change notification settings - Fork158
commented out prefixing of assetId with "projects/earthegine-legacy/assets/"#311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bbest commentedJan 13, 2023
So now I see how this is weirdly specified inAsset 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. |
csaybar commentedJan 31, 2023
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() |
bbest commentedFeb 25, 2023
Hi@csaybar, So sorry for dropping out of touch on this. Yes, I believe you identified the issue with the special treatment ofuser 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: