-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
RasterInterfaceCapabilities error #151
Comments
Hi @JSS2000, could you share the code or part of it to test it? |
Hi, @XavierCLL . That is the code: Centraliza o mapaMap.setCenter(-8.014008631440426, 38.5333478267441, 20) Carregar a coleção de imagens Sentinel-2 e filtrar pela área de interesseimage = ee.ImageCollection("COPERNICUS/S2").filterBounds(center).first(); # Selecionar a primeira imagem da coleção Defina o caminho do asset do seu polígono no GEEtailao_asset = 'projects/ee-ndvieto/assets/mitra1' # Substitua pelo seu caminho de asset do GEE Carregar a coleção de polígonos como um FeatureCollectiontailao = ee.FeatureCollection(tailao_asset) Faça o clip da imagem com o polígonoimagem_clipada = image.clipToCollection(tailao) Calcular o NDVIndvi = imagem_clipada.normalizedDifference(['B8', 'B4']).rename('NDVI') Adicionar a camada NDVI ao mapaMap.addLayer(ndvi, {min: -1, max: 1, palette: ['blue', 'white', 'green']}, 'NDVI') Exportar o NDVI para o Google Drive (ou outro serviço) se desejar, caso precise baixarExport.image.toDrive({ |
other code: Map.setCenter(-8.014008631440426, 38.5333478267441, 20) |
I couldn't test completely because 'projects/ee-ndvieto/assets/mitra1' does not exist, but this code that is part of your code works for me:
most likely you have an issue with your code |
I run the code like yours and return same error with added lines: Maybe is some python library in fault. |
That was fixed in #140 but has not been released yet, but for now you can use this #133 (comment) zip with the fixes |
Thank you, @XavierCLL . Indeed, it has been corrected. However, that error , continue : TypeError: invalid result from EarthEngineRasterDataProvider.capabilities(), RasterProviderCapabilities cannot be converted to qgis._core.RasterInterfaceCapabilities in this context . What is the QGIS version that you have used to run that code? |
@JSS2000 error confirmed, I usually use a lts version but with the latest version of Qgis 3.38 capabilities() need to be updated, I'm going to fix it, thanks! |
fixed, test with this: |
Thank you, @XavierCLL with that upgrade , works! |
Hi,
I am tring to fix that error:
TypeError: invalid result from EarthEngineRasterDataProvider.capabilities(), RasterProviderCapabilities cannot be converted to qgis._core.RasterInterfaceCapabilities in this context
My QGIS version is : 3.38 and GEE plugin is 0.6.
Someone has some clue?
The text was updated successfully, but these errors were encountered: