Skip to content

Commit 8f58a1f

Browse files
authored
Merge pull request #86 from pgRouting/new_documentation
Documentation - first version
2 parents 732ec78 + 771ee0c commit 8f58a1f

File tree

13 files changed

+182
-4
lines changed

13 files changed

+182
-4
lines changed

builddoc.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
rm -fR site
3+
mkdocs gh-deploy --clean
4+
rm -fR site

docs/functions/pgr_astar.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# pgr_astar
2+
3+
- Uses BBOX of the QGIS canvas to limit the resulting path(s)
4+
5+
- Buttons:
6+
- Preview: Draws in the canvas the resulting path
7+
- Clear Preview: Removes from the canvas objects generated with Preview
8+
- Export: Creates a one row per edge line geometry layer
9+
- Export Merged: Creates a one row per path multiline geometry layer. As many rows as needed.
10+
- Layer name:
11+
```
12+
(< M >< U|D >) astar: < source_id > to < target_id> BBOX(< bbox >)
13+
```
14+
15+
![pgr_astar01](../img/pgr_astar01.png)

docs/functions/pgr_bdastar.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# pgr_bdastar
2+
3+
- Uses BBOX of the QGIS canvas to limit the resulting path(s)
4+
5+
- Buttons:
6+
- Preview: Draws in the canvas the resulting path
7+
- Clear Preview: Removes from the canvas objects generated with Preview
8+
- Export: Creates a one row per edge line geometry layer
9+
- Export Merged: Creates a one row per path multiline geometry layer. As many rows as needed.
10+
- Layer name:
11+
```
12+
(< M >< U|D >) bdAstar: < source_id > to < target_id> BBOX(< bbox >)
13+
```
14+
15+
![pgr_astar01](../img/pgr_astar01.png)

docs/functions/pgr_bddijkstra.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# pgr_bddijkstra
2+
3+
- Uses BBOX of the QGIS canvas to limit the resulting path(s)
4+
5+
- Buttons:
6+
- Preview: Draws in the canvas the resulting path
7+
- Clear Preview: Removes from the canvas objects generated with Preview
8+
- Export: Creates a one row per edge line geometry layer
9+
- Export Merged: Creates a one row per path multiline geometry layer. As many rows as needed.
10+
- Layer name:
11+
```
12+
(< M >< U|D >) bdDijkstra: < source_id > to < target_id> BBOX(< bbox >)
13+
```
14+
15+
![pgr_dijkstra01](../img/pgr_dijkstra01.png)

docs/functions/pgr_dijkstra.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# pgr_dijkstra
2+
3+
- Uses BBOX of the QGIS canvas to limit the resulting path(s)
4+
5+
- Buttons:
6+
- Preview: Draws in the canvas the resulting path
7+
- Clear Preview: Removes from the canvas objects generated with Preview
8+
- Export: Creates a one row per edge line geometry layer
9+
- Export Merged: Creates a one row per path multiline geometry layer. As many rows as needed.
10+
- Layer name:
11+
```
12+
(< M >< U|D >) dijkstra: < source_ids > to < target_ids> BBOX(< bbox >)
13+
```
14+
15+
![pgr_dijkstra01](../img/pgr_dijkstra01.png)

docs/img/buttons.png

5.36 KB
Loading

docs/img/pgr_astar01.png

428 KB
Loading

docs/img/pgr_dijkstra01.png

424 KB
Loading

docs/index.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# pgRoutingLayer documentation
2+
3+
Welcome to pgRoutingLayer documentation.
4+
5+
6+
## About pgRoutingLayer
7+
8+
pgRoutingLayer is a plugin for QGIS that serves as a GUI for pgRouting - a popular routing solution for PostGIS databases.
9+
10+
## What this plugin currently does
11+
12+
### Introduction
13+
14+
- [Layer Naming Convention](intro/layer_naming_convention.md)
15+
- [Main buttons](intro/buttons.md)
16+
17+
### Functions
18+
19+
PgRoutingLayer currently supports the following functions:
20+
21+
- [Dijkstra](functions/pgr_dijkstra.md)
22+
- [Astar](functions/pgr_astar.md)
23+
- [bdDijkstra](functions/pgr_bddijkstra.md)
24+
- [bdAstar](functions/pgr_bdastar.md)
25+
- KSP
26+
- Trsp_vertex
27+
- Trsp_edge
28+
- Trsp_via_vertices
29+
- Trsp_via_edges
30+
- DrivingDistance
31+
- Alphashape
32+
33+
Please check the pgRouting documentation for detailed descriptons: http://docs.pgrouting.org
34+
35+
## Installation
36+
37+
This plugin can be installed using the QGIS Plugin Manager. You will have to enable "experimental" plugins.
38+
39+
### Dependencies
40+
41+
- This plugin runs only with QGIS 3.x and Python 3.
42+
- pgRouting v2.x up and running to use this plugin.
43+
- Additionally, QGIS needs python-psycopg2 installed to be able to connect to the database.
44+
45+
## Links
46+
47+
- project home and bug tracker: https://github.com/pgrouting/pgRoutingLayer
48+
- plugin repository: http://plugins.qgis.org/plugins
49+
- pgRouting project: https://pgrouting.org
50+
51+
52+
## License
53+
54+
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

docs/intro/buttons.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## The Buttons
2+
There are 4 buttons for controlling how to render the pgRouting query:
3+
4+
![buttons](../img/buttons.png)
5+
6+
7+
### Preview
8+
Draws in the canvas the resulting path.
9+
10+
Creates a temporary lines on the canvas. No additional information is shown, except for pgr_dijkstraCost where an annotation is also created.
11+
12+
13+
### Clear Preview
14+
Removes from the canvas objects generated with Preview
15+
16+
When Clear Preview is called the generated temporary lines and annotation are deleted from the canvas. When the QGIS project is saved when there are visible annotations:
17+
18+
- Those annotations will be saved as part of the project
19+
- Can be cleared with Clear Preview button, but the project needs to be saved again. On reopening a project that has annotation:
20+
- The annotations will be shown, but won't be cleared using the Clear Preview button, they are not under the pgRoutingLayer GUI control
21+
22+
23+
### Export
24+
Creates a one row per edge line geometry layer
25+
26+
27+
### Export Merged
28+
Creates a one row per path multi-line geometry layer.
29+
30+
Only one row is generated. Not all functions results can be merged, when that is the case then the button is dimmed.

0 commit comments

Comments
 (0)