SentinelHub QGIS Plugin enables users to harness the power of Sentinel Hub services directly from QGIS.
Since version 2.0.0
the plugin only works with QGIS 3 and Python version >=3.5
while earlier versions support both QGIS 2 and QGIS 3.
SentinelHub QGIS Plugin is available in QGIS Official Plugin Repository. For install just open QGIS, select Plugins -> Manage and Install Plugins
and search for the plugin.
In case of manual installation, you can download latest release, unzip it into QGIS Plugin directory and enable plugin under QGIS Installed Plugins.
For a quick tutorial check this blog post.
- Set up an empty Python environment.
- Install development requirements
pip install -r requirements.txt -r requirements-dev.txt
- Download Python packages that QGIS might not have by default and will be packed together with the plugin:
mkdir ./SentinelHub/external
pip download -d ./SentinelHub/external --no-deps -r requirements.txt
- Configure a path to QGIS Python environment. The path depends on your OS and QGIS installation. Here is an example for Linux:
export PYTHONPATH=/usr/lib/python3/dist-packages
- Use
pb_tool
to package and deploy the code to your local QGIS repository
cd ./SentinelHub
pbt deploy -y
- Use
pylint
to check code style
pylint SentinelHub
- Install Plugin Reloader in QGIS in order to dynamically reload your plugin every time you redeploy it.
- Package code into a zip file using
pb_tool
cd ./SentinelHub
pbt zip
- Release the plugin on GitHub and attach the generated zip file.
- Release the plugin to QGIS Python Plugins Repository by manually uploading the zip file to a release form.