Skip to content

A QGIS plugin to integrate with the Earth Observation Data Hub (EODH)

License

Notifications You must be signed in to change notification settings

EO-DataHub/eodh-qgis

Repository files navigation

eodh-qgis Plugin

codecov

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.

Installation

From QGIS repository

  1. Go to menu Plugins -> All
  2. Search for EODH Workflows
  3. Click Install Plugin
  4. We're using QPIP plugin to install python dependencies using pip. Click OK to install them.

Manual

  1. Download archive for your platform from releases
  2. Open QGIS
  3. Go to menu Plugins -> Manage and Install Plugins...
  4. Select Install from ZIP...
  5. Select the downloaded archive
  6. Click Install Plugin
  7. We're using QPIP plugin to install python dependencies using pip. Click OK to install them.

Usage

When opening the plugin for the first time, you need to configure authentication credentials to access EODH APIs.

  1. Click on settings button
  2. Enter your EODH username and API key (can be generated in your account settings on EODH website).
  3. Click back to Workflows or Jobs and your list will load normally.

Development

Flatpak and VSCode

To setup language server support in VSCode if you've installed QGIS from Flatpak:

  1. Find pyqgis location

    find / -type d -wholename "*share/qgis/python/qgis" 2> /dev/null

  2. Set the PYTHONPATH env variable for VSCode by creating a .env file with the following content:

    PYTHONPATH="/path/to/pyqgis"

  3. Restart VSCode

Developer workflow

  1. Make changes

  2. Deploy changes to plugin directory

    1. 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
    2. (Optional) Set this path as an env variable in .env named EODH_QGIS_PATH
    3. Run python deploy.py <path to plugin directory> (Path can be ommited if already set as an env variable in prev. step)
  3. Reload plugin

Testing

  1. make check will run code formatting and linting checks.

  2. make test will run tests against a running QGIS instance in a docker container.

About

A QGIS plugin to integrate with the Earth Observation Data Hub (EODH)

Resources

License

Stars

Watchers

Forks

Packages

No packages published