QGIS Plugins

Some changes in the network are temporary or somewhat local, for which deploying complex transport models are not an option. However, it is still important to know the impact of such changes on the network. After all, traffic does not disappear but is only re-distributed.

This impact analysis can be carried out using a Geographic Information System (GIS) application that supports viewing, editing, and analysis of geospatial data. QGIS is the leading Free and Open Source Desktop GIS and QGIS Plugins are a great way to extend the functionality of products (e.g., ShortCut) towards a more efficient and automated impact analysis in QGIS.

If you want a ShortCut for your city or study, get in touch, we're happy to help!

Workflow

Normally, setting up our plugins consists of 3 steps:

Font Awesome 5 Icons

Requirements

Installing required Python packages in QGIS.


Stockholm-icons / Navigation / Angle-double-right Created with Sketch.
Stockholm-icons / Files / Upload-folder Created with Sketch.

Deployment

Deploying the plugin to your device.


Stockholm-icons / Navigation / Angle-double-right Created with Sketch.
Stockholm-icons / Media / Play Created with Sketch.

Launch

Launching the plugin in the QGIS.


This step-by-step guide is intended to walk you through the process of setting up our plugins.

Requirements

It goes without saying that various Python packages have been used in the development of our plugins. Some of these packages are already available in QGIS, while others are not (e.g., Pandas). Given that these packages are required for running our plugins, here we'll walk you through the process of verifying the availability of these packages in your QGIS or otherwise install them accordingly.

Availability

Depending on the plugin, the following packages might be required to be available in your QGIS:

  • Pandas
  • Aiohttp
  • Backoff

Availability of aforementioned packages can be verified as follows:

  • Open QGIS Python Console using the shortcut key (Ctrl+Alt+P) or via "Plugins » Python Console" or clicking on the Python icon.
  • In Python Console, click "Show Editor" to open the script editor.
  • Try importing aforementioned packages (e.g., import pandas) in the editor.
  • If you received an error, the package needs to be installed.

Installation

It is important to realize that unlike Linux systems, in Windows systems, QGIS installs and uses an exclusive version of Python, which makes package installation a multistep process. These steps in Windows system for QGIS 3.x are as follows:

  1. Open Windows File Explorer and navigate to where QGIS is installed*
    *by default on a 64-bit version of Windows: "C:\Program Files\QGIS 3.x"
  2. Copy "python3.dll" and "python36.dll" (or python37.dll) from the "bin" folder and paste them in "apps/Python36" folder (overwrite existing!).
  3. Click on the location bar of Windows File Explorer, type cmd and press Enter to open the Command Prompt.
  4. Once cmd opened, install the desired package by typing: .\python -m pip install PackageName

*Remark 1: In the event of a permission error, you'll need to open cmd as administrator.
*Remark 2: In the event of a writing error, try: .\python -m pip install --user PackageName

Verification

Once required packages were installed, re-open QGIS and re-try importing them via the Python Console editor. This time you should receive no errors.

Deployment

Once requirements were installed and verified, your system is ready for deployment of the plugin.

Plugin Deployment

Deployment of our plugins is as easy as copying the desire plugin's folder and placing it under:
"C:/user/[Computer or person’s name]/AppData/Roaming/QGIS/QGIS3/profile/default/python/plugins"

*Remark: For finding the "AppData" folder, you'll need to make sure that Windows File Explorer's view setting for hidden files and folders is set to "Show hidden files, folders, and drives" . Here is how it's done:

  1. Open Windows File Explorer
  2. View » Options » Change folder and search options
  3. Click View tab
  4. Under Advanced settings, find and select "Show hidden files, folders, and drives"
  5. Click OK

Launch

Once deployed, you'll only need to launch the plugin in QGIS and enjoy using it.

Plugin Launch

Here are steps towards launching the plugin in QGIS:

  1. (Re)start QGIS
  2. Plugins » Manage and Install Plugins...
  3. In the plugin management window click Installed from the left column and then select the deployed plugin in the right column
  4. Close plugin management window.


Now you should see the deployed plugin's icon (i.e., normally our logo) in your QGIS plugin toolbar.

Enjoy using our plugins and please do not hesitate to share your comments and suggestions with us.