Open RetoSchmucki opened 1 year ago
maybe part of the answer is here: https://developers.google.com/earth-engine/guides/image_manifest#asset-ids-and-names
For assets in Cloud projects, use
projects/my_cloud_project/assets/my_asset
.
For older legacy projects, the asset name in the manifest needs to be slightly different from the asset ID visible elsewhere in Earth Engine. To upload assets whose asset IDs start with users/some_user or projects/some_project
, the asset name in the manifest must have the string projects/earthengine-legacy/assets/
prepended to the ID. For example, EE asset ID users/username/my_geotiff
should be uploaded using the name projects/earthengine-legacy/assets/users/username/my_geotiff
.
I just tried to upload the asset (image) with the earthengine CLI, writing the manifest.json and omitting the startprojects/earthengine-legacy/assets/
from the asset name and only use projects/my_cloud_project/assets/my_asset
and that works fine; uploading the asset in my Cloud project assets.
Something that could be added to the raster_as_ee()
with an argument CloudProject = TRUE
.
At submit an issue, please attached the following information of your
rgee
session:[x] You have the Python API installed (from terminal):
[x] You can find the credentials file on your system:
[x] You can run a simple EE command from R:
python: C:/Users/xxxx/AppData/Local/Continuum/miniconda3/envs/rgee/python.exe libpython: C:/Users/xxxx/AppData/Local/Continuum/miniconda3/envs/rgee/python38.dll pythonhome: C:/Users/xxxx/AppData/Local/Continuum/miniconda3/envs/rgee version: 3.8.17 | packaged by conda-forge | (default, Jun 16 2023, 07:01:59) [MSC v.1929 64 bit (AMD64)] Architecture: 64bit numpy: C:/Users/xxxx/AppData/Local/Continuum/miniconda3/envs/rgee/Lib/site-packages/numpy numpy_version: 1.24.3 ee: C:\Users\xxxx\AppData\Local\CONTIN-1\MINICO-1\envs\rgee\lib\site-packages\ee__init__.p
NOTE: Python version was forced by RETICULATE_PYTHON
Description
More a question than an Issue. Can we upload assets to GEE cloud project? Everything works perfectly fine when uploading GeoTiff to my gee
user/USERNAME/
using theraster_as_ee()
function. But the same does not work with my GEE Cloud Project that has`projects/ee-PROJECTNAME/assets/
as root path.Interestingly, I can read
ee_manage_assetlist()
for my GEE Cloud Project, returning the correct pathprojects/ee-PROJECTNAME/assets/
but then when usingraster_as_ee()
, everything run smoothly, uploading the GeoTiff on GCS bucket and thenBut then, when trying to move it to GEE project I encounter some issue wth invalid root path.
I can't find any example working with a GEE project and cloud assets, only
user/USERNAME/assets
. Is this simply because the earthenging API can't write into cloud assets?I searched and read the GEE documentation referring to the asset paths for users and projects, and everything is okay in the manifest name.
Did someone manage to upload assets to project cloud assets? Could it be related to my SaK permission?
What I Did