Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QgsRasterDataProvider' object has no attribute 'set_ee_object #148

Open
TaiwoGabriel opened this issue Jun 25, 2024 · 2 comments
Open

QgsRasterDataProvider' object has no attribute 'set_ee_object #148

TaiwoGabriel opened this issue Jun 25, 2024 · 2 comments

Comments

@TaiwoGabriel
Copy link

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
Copy link
Collaborator

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
Copy link
Author

Thanks @XavierCLL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants