Skip to content

How to: test pgRoutingLayer 3

Vicky Vergara edited this page Dec 12, 2020 · 12 revisions

How to: test pgRoutingLayer v3.0.0

December 3, 2019

Status

  • pgRoutingLayer v3.0.0-alpha is on master
  • pgRoutingLayer v3.0.0-beta developing is taking place in develop branch
    • Will have the latest changes
    • Will move to master once we think the beta version is ready

Clone & Download

git clone https://github.com/pgRouting/pgRoutingLayer
cd pgRoutingLayer

Don't for get to go to git checkout develop to try latest changes

Prepare python virtual environment

Create a new virtual environment inside the directory:

python3 -m venv py-env

If you are using Python 3, then you should already have the venv module from the standard library installed. If you don't have it then do:

sudo apt-get install python3-venv

Activate the environment & Install the needed software

Activate the environment

source py-env/bin/activate

You know its activated because the command line starts with: (py-env)

Install the needed software (only need to do once)

pip install wheel
pip install mkdocs
sudo apt-get install pyqt5-dev-tools
pip install pb_tool

For 20.04:

sudo apt-get install pyqt5-dev-tools
pip install pb_tool

Use the pb_tool

pb_tool --help

Install QGIS (if not installed)

If not install, go to and follow the instructions QGIS download For example:

sudo add-apt-repository "deb https://qgis.org/ubuntu bionic main"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key CAEB3DC3BDF7FB45
sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass

Get ready

From the menu: Settings -> User Profiles -> New Profile ...

Fill the form: New profile name: pgrouting

Opens a new QGIS window with the profile pgRouting, close the old window.

Close QGIS.

sudo updatedb
locate QGIS3/profiles/pgrouting/python

Create plugins directory if not exists: (for example under user vicky)

mkdir /home/vicky/.local/share/QGIS/QGIS3/profiles/pgrouting/python/plugins

Edit pb_tool.cfg

Change the line:

plugin_path: /home/vicky/.local/share/QGIS/QGIS3/profiles/pgrouting/python/plugins

Deploy the plugin

pb_tool deploy

Open QGIS Plugins -> Manage and Install plugins -> Settings tab Add tick mark on the form to:

  • Check for updates on startup
  • Show also experimental plugins

Plugins -> Manage and Install plugins -> Installed pgRoutingLayer should show Add tick mark on pgRoutingLayer