Skip to main content

Shortest Path Analysis on Geospatial Data Using PgRouting

Visualization of Shortest Path on Road Network

  • Conference paper
  • First Online:
International Conference on Innovative Computing and Communications

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 55))

Abstract

Geographic information systems (GISs) are becoming the most popular field in recent years. A GIS is an application or system which is designed for capture, storage, manipulation, analysis, and presentation of spatial or geographic information. Geographic location is the key term or information for the geographic information without which the data can’t be said to be spatial or geographic. The approach mentioned in this paper explores two famous problems, i.e., GIS and graph theory algorithms to find out the shortest path between the two nodes. This paper explores the working of “shortest path analyzer” plugin developed for QGIS [1, 2] to find out the shortest path between two nodes (source and destination) in road network (geospatial data) using various algorithm approaches of PgRouting [3, 4] extension of PostgreSQL [5] database. A detailed overview of this plugin is presented in this paper. PgRouting provides some methods by which the cost parameter of distance from the source node to the destination node can be calculated dynamically. In this research, various algorithms (provided in PgRouting) are implemented to calculate the best and an optimal shortest path between two nodes and the comparison of various shortest path algorithms [6] is made to calculate the shortest path with minimum cost. This paper is a comprehensive compilation of theory as well as an implementation of PgRouting library functions in the form of the plugin of QGIS in the spatial network analysis domain. This research is implementing a geospatial database at the backend and PyQGIS plugin at the front end to calculate and visualize the shortest path between two nodes of the road network using various combinations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 59.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Lachlan Smeed, QUT, Article on “An Introduction to Quantum QGIS”

    Google Scholar 

  2. Neteler M, Mitasova H (2008) Open source gis: a grass gis approach

    Google Scholar 

  3. pgRouting Contributor (2017) Manual released 2.5.1

    Google Scholar 

  4. Kastl D et al (2009) Foss4G routing with pgRouting tools and OpenStreetMap road data

    Google Scholar 

  5. Varlena, LCC—introduction to PostgreSQL the open source object-relation database management system

    Google Scholar 

  6. Magzhan K, Jani HM (2013) A review and evaluation of shortest path algorithm

    Google Scholar 

  7. Chiang YY, Knoblock CA (2008) General approach for extracting road vector data from raster maps

    Google Scholar 

  8. Windows Implementation of PgRouting to find Shortest Path using Dijkstra’s Algorithm for Varanasi Road Network—Kumari Pritee1, R.D. Garg2, and Anurag Ohri

    Google Scholar 

  9. Official Road Graph Plugin Documentation

    Google Scholar 

  10. Singal P, Chhillar RS (2014) Dijkstra shortest path algorithm using global positioning system

    Google Scholar 

  11. Graser A, Nagase K, Vergara V (2013) PgRouting layer plugin

    Google Scholar 

  12. Stajano F (1995) A gentle introduction to relational and object-oriented databases

    Google Scholar 

  13. Singh PS et al (2015) Dynamic shortest route finder using PgRouting for emergency management

    Article  Google Scholar 

  14. Official article of Shapefiles by Geofabrik

    Google Scholar 

  15. PostGIS Official Documentation Manual

    Google Scholar 

  16. Psycopg2—PostgreSQL database adapter for Python

    Google Scholar 

  17. PostGIS 2.0 pgsql2shp shp2pgsql Command Line Cheat sheet

    Google Scholar 

  18. Postgis2.1_cheatsheet 2.1.0dev r11091

    Google Scholar 

  19. Using DB Manager to work with spatial databases in QGIS

    Google Scholar 

  20. QGIS-2.0-PyQGIS developer cookbook

    Google Scholar 

  21. Nosrati M, Karimi R, Hasanvand HA (2012) Investigation of *(Star) search algorithms: characteristics, methods and approaches

    Google Scholar 

  22. Miler M, Medak D, Odobais D (2013) The shortest path algorithm performance comparison in graph and relational database on a transportation network

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chetan Chadha .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Chadha, C., Garg, S. (2019). Shortest Path Analysis on Geospatial Data Using PgRouting. In: Bhattacharyya, S., Hassanien, A., Gupta, D., Khanna, A., Pan, I. (eds) International Conference on Innovative Computing and Communications. Lecture Notes in Networks and Systems, vol 55. Springer, Singapore. https://doi.org/10.1007/978-981-13-2324-9_20

Download citation

Publish with us

Policies and ethics