QgsRasterDataProvider' object has no attribute 'set_ee_object
TaiwoGabriel opened this issue · 2 comments
The code below executed successfully, and the shapefile layer for Ukraine was displayed. However, I got this error: AttributeError: 'QgsRasterDataProvider' object has no attribute 'set_ee_object', after the execution of the code. What could be the reason for the error?.
import ee
ee.Initialize()
from ee_plugin import Map
countries = ee.FeatureCollection("USDOS/LSIB_SIMPLE/2017")
country = countries.filter(ee.Filter.eq('country_na', 'Ukraine'))
Map.addLayer(country, { 'color': 'orange' }, 'feature collection layer')
Thanks, @TaiwoGabriel. I can confirm the error, but it only happens in that kind of collection; temporarily, you can ignore it (the error is just getting the layer info). meanwhile, we can find a workaround for that.
Thanks @XavierCLL.