10. But first you gotta be loaded
• For OS data
– Astun Loader!
– Lutra’s OS Translator II
– Ogr2ogr
– Snowflake’s GoLoader*
– Safe’s FME*
• For OpenStreetMap
– osm2pgrouting
11. There’s a plugin for that
• How can I use it
without writing
SQL?
• pgRouting Layer by
Anita Graser and
others in the
pgRouting team
27. Vanilla Shortest Path
SELECT seq, id1 AS node, id2 AS
edge, cost FROM pgr_dijkstra('
SELECT gid AS id, source::integer,
target::integer, cost_time::double
precision AS cost,
rcost_time::double precision AS
reverse_cost FROM or_network',
100828, 1136587, false, true);
28. M&S Shortest Path
SELECT seq, id1 AS node, id2 AS edge,
cost FROM pgr_dijkstra(' SELECT gid AS
id, source::integer, target::integer,
cost_time::double precision AS cost,
rcost_time::double precision AS
reverse_cost FROM or_network
WHERE geometry && ST_Expand( (SELECT
ST_Collect(the_geom) FROM
or_network_vertices_pgr WHERE id IN
(100828, 1136587)),5000)', 100828,
1136587, false, true);
29. Making things even better!
• Update the QGIS plugin to use new PGR
functions
• Update the plugin to use a bounding box
• Add restrictions (e.g. closures, safe
routes)
• How does psycopg2 work? Is it a
bottleneck?
30. Not Mrs Beeton’s recipes
http://anitagraser.com
https://georepublic.info/en/blog
http://workshop.pgrouting.org/index.html
http://ghost.mixedbredie.net/tag/pgrouting