planetlabs / qgis-planet-plugin

Browse, filter, preview and download Planet Inc imagery in QGIS.
https://developers.planet.com/docs/integrations/qgis/
GNU General Public License v2.0
45 stars 12 forks source link
gis planet-labs qgis

.. Build Status

Planet Plugin for QGIS

.. image:: https://github.com/planetlabs/qgis-planet-plugin/actions/workflows/testing.yml/badge.svg?branch=master

Browse, filter, preview and download Planet Inc <https://www.planet.com/>_ imagery in QGIS.

Official documentation can be found here <https://developers.planet.com/integrations/>_

Requirements


QGIS 3.10 (minimum)

Development Setup


Note, if you just need to install the plugin, jump to Plugin Setup (below).

A quick setup of the development environment needed for the plugin and to work with the Planet API tutorials <https://developers.planet.com/planetschool/>_ is available via the conda packaging system.

The dev environ provides:

Install

Install from source ++++++++++++++

First, clone this repository.

Using an install of conda (from miniconda3 <https://docs.conda.io/en/latest/miniconda.html> or anaconda <https://www.anaconda.com/distribution/>), load this environment file: qgis3-conda-forge-env.yml <./qgis3-conda-forge-env.yml> (see Managing conda environments <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>)

 conda env create -f=/path/to/qgis3-conda-forge-env.yml

This will create a conda environment named qgis3-conda-forge, which you can activate in a Terminal session:

conda activate qgis3-conda-forge

Or, you can use the environ as a basis for your Python interpreter within VSCode, PyCharm or similar IDE that natively supports parsing conda environs.

Then, install the following into the qgis3-conda-forge environ:

conda install --force-reinstall -n qgis3-conda-forge -c conda-forge conda-wrappers

The conda-wrappers utility creates conda environ wrappers for ALL executables/scripts in qgis3-conda-forge/bin, so needs to be run after setting up the environment. The same install --force-reinstall command needs re-run if you install any new packages that add executables/scripts to qgis3-conda-forge/bin, so they can also be wrapped.

The wrapped executables/scripts are available at this path (note added wrappers/conda subdirectories):

qgis3-conda-forge/bin/wrappers/conda/(exe|script)

For example, you should use the following python3 exe path for IDE setups:

/path/to/your/miniconda3/envs/qgis3-conda-forge/bin/wrappers/conda/python3

Install from QGIS plugin repository ++++++++++++++

Install from ZIP file ++++++++++++++

Alternatively the plugin can be installed using Install from ZIP option on the QGIS plugin manager.

Install from planet plugin repository ++++++++++++++

Planet plugin repository is available here <https://raw.githubusercontent.com/planetlabs/qgis-planet-plugin/release/docs/repository/plugins.xml>_

Plugin Setup


To install the latest version of the plugin: