You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the provided basic_geometries.py example script from the examples folder, which sequentially adds multiple geometries to the map. However, I found that the code was exiting after the first geometry was added. When adding a single geometry we get the following error:
Traceback (most recent call last):
File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "<string>", line 6, in <module>
File "/Users/zacdez/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/Map.py", line 32, in addLayer
utils.add_or_update_ee_layer(eeObject, visParams, name, shown, opacity)
File "/Users/zacdez/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/utils.py", line 172, in add_or_update_ee_layer
update_ee_layer_properties(layer, eeObject, visParams, shown, opacity)
File "/Users/zacdez/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/utils.py", line 29, in update_ee_layer_properties
layer.dataProvider().set_ee_object(eeObject)
AttributeError: 'QgsRasterDataProvider' object has no attribute 'set_ee_object'
I erroneously thought the issue was sequentially adding geometries, but the code is just exiting after adding the first layer. It's problematic because users who want to do any subsequent operations in their script cannot do so; the code will exit.
The text was updated successfully, but these errors were encountered:
I ran the provided basic_geometries.py example script from the examples folder, which sequentially adds multiple geometries to the map. However, I found that the code was exiting after the first geometry was added. When adding a single geometry we get the following error:
Code to reproduce:
Error:
I erroneously thought the issue was sequentially adding geometries, but the code is just exiting after adding the first layer. It's problematic because users who want to do any subsequent operations in their script cannot do so; the code will exit.
The text was updated successfully, but these errors were encountered: