gee-community / qgis-earthengine-plugin

Integrates Google Earth Engine and QGIS using Python API
http://qgis-ee-plugin.appspot.com
MIT License
454 stars 116 forks source link

Issue using gee plugin with Qgis 3.22.16 #130

Open lordsalomon opened 1 year ago

lordsalomon commented 1 year ago

Hello dear, Thanks again for this amazing plugin.

I have some problem using this plugin with the latest Qgis LTR release. It works fine before for me but for now, this is the error message i got once I try running my python script : Traceback (most recent call last): File "C:\PROGRA~1\QGIS 3.22.16\apps\Python39\lib\code.py", line 90, in runcode exec(code, self.locals) File "", line 1, in File "", line 9, in File "C:\Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\Map.py", line 25, in addLayer add_or_update_ee_layer(eeObject, visParams, name, shown, opacity) File "C:\Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 157, in add_or_update_ee_layer layer = add_or_update_ee_image_layer(image, name, shown, opacity) File "C:\Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\utils.py", line 166, in add_or_update_ee_image_layer raise Exception('Layer is not an EE layer: ' + name) Exception: Layer is not an EE layer: point

I can share the script also if necessar for fixing this.

XavierCLL commented 1 year ago

Hi @lordsalomon

The error says the problem, "point" is not a GEE layer, unless you are sure that layer is a GEE layer, share your script