< WMS Browser Light

Bounding box history plugin  >

27. Routing [plugin]

27.1. Introduction

The routing plugins deals with the pgRouting Postgresql extension allowing to perform, among several algorithms, computation of the shortest path between two nodes of a graph. This plugin provides a graphical user interface to query a Postgresql/PostGiS database with pgRouting functions installed on it.

Extended documentation on pgRouting functions can be found at the pgRouting website.

The demo_plugins demonstration shows an example of the routing plugin.

This documentation details how to install pgRouting on a PostGIS-enabled database and how to load demo data to be used in the demo_plugins project.

27.2. Installation

Before installing the pgRouting extension, a sample PostGIS database have to be created, as explained in the installation manual: Chapter 1, Installation.

27.2.1. Quick Install

  • Install the PgRouting PostgreSQL module. 


    To do so,

    • Download pgRouting from http://pgrouting.postlbs.org/ and follow install instruction. Mac users can find a version here: http://www.kyngchaos.com/software/unixport/postgres or find some basic compilation instructions (in French), here: http://www.davidgis.fr/documentation/win32/html/apa.html
    • On Debian, you need the following packages: cmake, g++, libboost-graph-dev, postgresql-server-dev-8.1 (it may depend of your version of Postgres) Then you can execute the "cmake .", "make" and "make install" given in the pgRouting install instruction. You may require administrative right to execute correctly these commands.