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

QgsRasterDataProvider' object has no attribute 'set_ee_object #148

Open TaiwoGabriel opened 5 months ago

TaiwoGabriel commented 5 months ago

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')

XavierCLL commented 5 months ago

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.

TaiwoGabriel commented 5 months ago

Thanks @XavierCLL.