Coder Social home page Coder Social logo

qgis_gee_data_catalog's Introduction

icon Google Earth Engine Data Catalog

Search, view and download satellite imagery and geospatial datasets from Google Earth Engine. EE Python API (earthengine-api) must be installed and it is required a Google Earth Engine account, besides authenticate it.

To install on Windows (OSGeo4W Shell):

> python -m pip install --upgrade pip
> python -m pip install earthengine-api --user

To install on Linux (Ubuntu based):

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install python3-pip
$ pip3 install earthengine-api --user

To authenticate on python prompt (python/python3):

>>> import ee
>>> ee.Authenticate(auth_mode='notebook')

qgis_gee_data_catalog's People

Contributors

sandroklippel avatar roya0045 avatar

Stargazers

N A Farinha avatar Jarad Olson avatar Liao Spacefan avatar Moshe Jonathan Gordon Radian avatar Jon Saints avatar Anthony avatar Sasa Bosnic avatar

Watchers

Sasa Bosnic avatar  avatar

qgis_gee_data_catalog's Issues

ModuleNotFoundError: No module named 'fcntl'

hi, I have this error when try to install it on windows. the following the bug track:

ModuleNotFoundError: No module named 'fcntl'
Traceback (most recent call last):
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 423, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\qgis_gee_data_catalog_init
.py", line 33, in classFactory
from .qgis_gee_data_catalog import GeeDataCatalog
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\ee_plugin_init_.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\qgis_gee_data_catalog\qgis_gee_data_catalog.py", line 26, in
from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\qgis_gee_data_catalog\ee_interface.py", line 6, in
import ee
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\OSGeo4W\apps\Python39\lib\site-packages\ee_init
.py", line 1, in
from .main import main
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\OSGeo4W\apps\Python39\lib\site-packages\ee\main.py", line 5, in
import blessings
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:\OSGeo4W\apps\Python39\lib\site-packages\blessings_init
.py", line 7, in
from fcntl import ioctl
File "C:\Users/enzoc/AppData/Roaming/QGIS/QGIS3\profiles\nuovo utente/python/plugins\ee_plugin_init
.py", line 38, in wrapping_ee_import
module = builtin_import(name, *args, **kwargs)
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'fcntl'

ModuleNotFoundError: No module named 'ee'

Goodmorning,

Every time I run QGIS, I encounter the following error (popup) - "Failed to load plugin 'qgis_gee_data_catalog' due to error calling classFactory() method"

ModuleNotFoundError: No module named 'ee'

Traceback (most recent call last):
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/Users/XXX/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/__init__.py", line 33, in classFactory
    from .qgis_gee_data_catalog import GeeDataCatalog
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/XXX/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/qgis_gee_data_catalog.py", line 26, in 
    from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/XXX/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/ee_interface.py", line 6, in 
    import ee
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'ee'

Versione Python: 3.9.5 (default, Sep 10 2021, 16:18:19) [Clang 12.0.5 (clang-1205.0.22.11)]
Versione di QGIS: 3.32.3-Lima Lima, 67d46100b5b

Data are not downloadable

I am able to search and download the imagery fine, but they all come in at a resolution of 0.29 m and when trying to export or calculate indices I get a file size is too large error.

Uncaught ModuleNotFoundError: No module named 'ee'

No se pudo cargar el complemento 'qgis_gee_data_catalog' debido a un error al llamar a su método classFactory()
Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/joel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/__init__.py", line 33, in classFactory
    from .qgis_gee_data_catalog import GeeDataCatalog
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/joel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/qgis_gee_data_catalog.py", line 26, in <module>
    from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/home/joel/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/ee_interface.py", line 6, in <module>
    import ee
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 744, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'ee'

qgis_gee_data_catalog 0.4.2, QGIS 3.10.4-A Coruña on Linux 5.13.0-30-generic

Couldn't load plugin 'qgis_gee_data_catalog' due to an error when calling its classFactory() method

Receiving this error when starting.

ModuleNotFoundError: No module named 'ee'
Traceback (most recent call last):
File "C:\PROGRA1/QGIS321.1/apps/qgis/./python\qgis\utils.py", line 423, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_gee_data_catalog_init
.py", line 33, in classFactory
from .qgis_gee_data_catalog import GeeDataCatalog
File "C:\PROGRA1/QGIS321.1/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/l...AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_gee_data_catalog\qgis_gee_data_catalog.py", line 26, in
from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
File "C:\PROGRA1/QGIS321.1/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_gee_data_catalog\ee_interface.py", line 6, in
import ee
File "C:\PROGRA1/QGIS321.1/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'ee'

qgis_gee_data_catalog

Downgraded to LTR version and plug-in still requires reinstallation each visit.
Generates numerous class factory errors

ee module missing
_curses

data.py:230: ResourceWarning and __init__.py:45: DeprecationWarning

I get this warning as soon as I start QGIS with this plugin activated:
2022-01-20T10:43:27 WARNING warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py:230: ResourceWarning:

         unclosed file 
         
         
         traceback: File "", line 1, in 
          File "/usr/share/qgis/python/pyplugin_installer/installer.py", line 275, in showPluginManagerWhenReady
          iface.pluginManagerInterface().showPluginManager(tabIndex)
          File "", line 1, in 
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 443, in startPlugin
          if not _startPlugin(packageName):
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
          plugins[packageName] = package.classFactory(iface)
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/__init__.py", line 33, in classFactory
          from .qgis_gee_data_catalog import GeeDataCatalog
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
          _module_ = __builtin_import__(name, *args, **kwargs)
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/qgis_gee_data_catalog.py", line 26, in 
          from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
          _module_ = __builtin_import__(name, *args, **kwargs)
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/ee_interface.py", line 6, in 
          import ee
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 36, in __wrapping_ee_import__
          _module_.Initialize()
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/__init__.py", line 114, in Initialize
          credentials = data.get_persistent_credentials()
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py", line 230, in get_persistent_credentials
          tokens = json.load(open(oauth.get_credentials_path()))
          File "/usr/lib/python3.9/warnings.py", line 109, in _showwarnmsg
          sw(msg.message, msg.category, msg.filename, msg.lineno,

2022-01-20T10:43:27 WARNING warning:/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/httplib2shim/init.py:45: DeprecationWarning:

         Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
         
         
         traceback: File "", line 1, in 
          File "/usr/share/qgis/python/pyplugin_installer/installer.py", line 275, in showPluginManagerWhenReady
          iface.pluginManagerInterface().showPluginManager(tabIndex)
          File "", line 1, in 
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 443, in startPlugin
          if not _startPlugin(packageName):
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
          plugins[packageName] = package.classFactory(iface)
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/__init__.py", line 33, in classFactory
          from .qgis_gee_data_catalog import GeeDataCatalog
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
          _module_ = __builtin_import__(name, *args, **kwargs)
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/qgis_gee_data_catalog.py", line 26, in 
          from .ee_interface import (add_ee_image_layer, download_ee_image_layer,
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 32, in __wrapping_ee_import__
          _module_ = __builtin_import__(name, *args, **kwargs)
          File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
          mod = _builtin_import(name, globals, locals, fromlist, level)
          File "", line 1007, in _find_and_load
          File "", line 986, in _find_and_load_unlocked
          File "", line 680, in _load_unlocked
          File "", line 855, in exec_module
          File "", line 228, in _call_with_frames_removed
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qgis_gee_data_catalog/ee_interface.py", line 6, in 
          import ee
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/__init__.py", line 36, in __wrapping_ee_import__
          _module_.Initialize()
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/__init__.py", line 115, in Initialize
          data.initialize(
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py", line 210, in initialize
          _install_cloud_api_resource()
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/data.py", line 280, in _install_cloud_api_resource
          _cloud_api_resource = _cloud_api_utils.build_cloud_resource(
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/ee/_cloud_api_utils.py", line 133, in build_cloud_resource
          http_transport = httplib2.Http(timeout=timeout)
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/httplib2shim/__init__.py", line 117, in __init__
          pool = self._make_pool(proxy_info=proxy_info)
          File "/home/alobo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux/httplib2shim/__init__.py", line 45, in _default_make_pool
          if isinstance(proxy_info, collections.Callable):
          File "/usr/lib/python3.9/collections/__init__.py", line 62, in __getattr__
          warnings.warn("Using or importing the ABCs from 'collections' instead "
          File "/usr/lib/python3.9/warnings.py", line 109, in _showwarnmsg
          sw(msg.message, msg.category, msg.filename, msg.lineno,

[Feature request] remember last items

Greetings,

In the PR that I made I recalled that some elements remained saved, now in the latest release those elements reset. Could it be possible to have those elements remain whenever the plugin is reopened.

I don't recall how to cache them or what is causing them to reset but resetting the output each time along with other parameters is more annoying as our use case require to only need to change 1 or two element between each export.

Thanks again,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.