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
- Search for
EODH Workflows
- Click Install Plugin
- We're using QPIP plugin to install python dependencies using pip. Click OK to install them.
- Download archive for your platform from releases
- Open QGIS
- Go to menu Plugins -> Manage and Install Plugins...
- Select
Install from ZIP...
- Select the downloaded archive
- Click
Install Plugin
- We're using QPIP plugin to install python dependencies using pip. Click OK to install them.
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 key (can be generated in your account settings on EODH website).
- Click back to Workflows or Jobs and your list will load normally.
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.