A QGIS plugin to integrate with the Earth Observation Data Hub (EODH) This plugin demonstrates the EO Application Package and workflow capabilities of the EODH.
- Go to menu Plugins -> All
- Tick
Show experimental plugins
in the settings tab - Search for
EODH Workflows
- Click Install Plugin
- Download archive for your platform from releases
- Extract it to QGIS plugin directory. To find it go to QGIS menu Settings -> User profiles -> Open active profile folder -> python -> plugins
- Make sure plugin is enabled in menu Plugins -> Manage and Install Plugin... -> Installed. There must be a tick next to EODH Workflows.
When opening the plugin for the first time, you need to configure authentication credentials to access EODH APIs.
- Click on settings button
- Enter your EODH username and API token (can be generated in your account settings on EODH website).
- Click back to Workflows or Jobs and your list will load normally.
Install pyeodh library to libs
directory.
To e.g. install/update to latest version from pypi: pip install --target libs --upgrade pyeodh
To setup language server support in VSCode if you've installed QGIS from Flatpak:
-
Find pyqgis location
find / -type d -wholename "*share/qgis/python/qgis" 2> /dev/null
-
Set the
PYTHONPATH
env variable for VSCode by creating a.env
file with the following content:PYTHONPATH="/path/to/pyqgis"
-
Restart VSCode
-
Make changes
-
Deploy changes to plugin directory
- Locate the QGIS plugin directory, make sure the directory named after the plugin is included in the path e.g.
~/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/eodh_qgis
- (Optional) Set this path as an env variable in
.env
namedEODH_QGIS_PATH
- Run
python deploy.py <path to plugin directory>
(Path can be ommited if already set as an env variable in prev. step)
- Locate the QGIS plugin directory, make sure the directory named after the plugin is included in the path e.g.
-
Reload plugin
-
make check
will run code formatting and linting checks. -
make test
will run tests against a running QGIS instance in a docker container.