TransWikia.com

Unable to add SHP from GEE Assets into QGIS via QGIS-GEE plugin

Geographic Information Systems Asked on June 1, 2021

This might come across as a duplicate question here but I cannot find a way out.
I’ve got two shapefiles uploaded in Assets in GEE against my username.
I am trying to add them into QGIS and it fails all the time.

I can confirm that the GEE plugin has been installed correctly because I can load imagery without any issues. Also, I am able to perform analysis in GEE but want to do so in QGIS because there are certain things that are a bit easier there.

The code I’m trying is as follows:

poly_layer = ee.FeatureCollection('users/myusername/folder/polygon');
Map.centerObject(poly_layer);

The error I’m getting is as follows:

Traceback (most recent call last):   File "C:UsersmynameAppDataRoamingQGISQGIS3profilesdefaultpythonpluginsee_pluginextlibs_windowseedata.py", line 338, in _execute_cloud_call
    return call.execute(num_retries=num_retries)   File "C:UsersmynameAppDataRoamingQGISQGIS3profilesdefaultpythonpluginsee_pluginextlibs_windowsgoogleapiclient_helpers.py", line 134, in positional_wrapper
    return wrapped(*args, **kwargs)   File "C:UsersmynameAppDataRoamingQGISQGIS3profilesdefaultpythonpluginsee_pluginextlibs_windowsgoogleapiclienthttp.py", line 907, in execute
    raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 400 when requesting https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/value:compute?prettyPrint=false&alt=json returned "Collection.loadTable: Collection asset 'users/myname/master_shp/polygon' not found.">

During handling of the above exception, another exception occurred:

Traceback (most recent call last):   File "C:PROGRA~1QGIS3~1.14appsPython37libcode.py", line 90, in runcode
    exec(code, self.locals)   File "<input>", line 1, in <module>   File "<string>", line 9, in <module>   File "C:/Users/myname/AppData/Roaming/QGIS/QGIS3profilesdefault/python/pluginsee_pluginMap.py", line 70, in centerObject
    coords = rect.bounds().getInfo()['coordinates'][0]   File "C:UsersmynameAppDataRoamingQGISQGIS3profilesdefaultpythonpluginsee_pluginextlibs_windowseecomputedobject.py", line 95, in getInfo
    return data.computeValue(self)   File "C:UsersmynameAppDataRoamingQGISQGIS3profilesdefaultpythonpluginsee_pluginextlibs_windowseedata.py", line 703, in computeValue
    prettyPrint=False))['result']   File "C:UsersmynameAppDataRoamingQGISQGIS3profilesdefaultpythonpluginsee_pluginextlibs_windowseedata.py", line 340, in _execute_cloud_call
    raise _translate_cloud_exception(e) ee.ee_exception.EEException: Collection.loadTable: Collection asset 'users/myusername/master_shp/polygon' not found.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP