A plugin for QGIS to load Xcube datasets from an xcube server. The plugin is being developed for ESA's BalticAIMS project.
The Plugin relies on the Xcube Python package, which is not distributed with the plugin.
In order to use the BalticAIMS QGIS plugin, the Python virtual environment, including Xcube, must be installed and configured for QGIS to use.
On Windows, you can use the install scripts provided with the release, to:
- setup the environment (
setup.bat), done only once on installation - run the QGIS version configured with the correct Python virtual environment (
run_qgis_with_xcube.bat), every time you want to use the plugin .
After the setup has been completed, you can install the plugin using "Install from Zip" in the QGIS Plugin Manager. Simply select the plugin balticaims.<version>.zip zip file in the dialog, which is contained in the release archive together with the installation scripts.
Please make sure to not select the release archive (which you can download from this repository), but the QGIS plugin zip balticaims.<version>.zip, which is contained in the release archive and can be accessed after unzipping the archive.
- Download the relase to the directory where you would like to install the Python environment
- Unzip the archive
- Run (by double click) the
setup.batscript to install the Python environment. This will take several minutes. Please be aware that the script will not produce text output for a few minutes shortly after launch. Please be patient! - Run (double click) the
run_qgis_with_xcube.batscript to launch QGIS. QGIS' Python interpreter should now be configured to support the plugin - Install the plugin using QGIS' Plugin Manager, if you didn't already
- If the plugin is installed, you may encounter an error when launching QGIS normally, without running
run_qgis_with_xcube.bat. You can ignore this error, but the plugin will not work. - You can verify that the Python environment is configured correctly, by opening the Python Console in QGIS and running
import xcube. If no error is thrown, the environment is working correctly. - The scripts
setup.batandrun_qgis_with_xcube.batmust remain next to the other files distributed with the release and created by runningsetup.bat. Do not move the scripts to another location, or they will stop working. You can create a Desktop shortcut, if you wish.