Open Source Geospatial Books

Access GIS books on QGIS, Leaflet, pgRouting, and education

pgRouting: A Practical Guide

by Regina Obe and Leo Hsu


pgRouting logo of blue elephant following a GPS map

Extending PostgreSQL and PostGIS with routing
and graph analysis

Book cover for pgRouting: A Practical Guide by Locate Press


PDF $34.99
282 pages
ISBN 978-0989421737
Published 2017-05-31

What is pgRouting? It's a PostgreSQL extension for developing network routing applications and doing graph analysis.

Interested in pgRouting? If so, chances are you already use PostGIS, the spatial extender for the PostgreSQL database management system. So when you've got PostGIS, why do you need pgRouting? PostGIS is a great tool for molding geometries and doing proximity analysis, however it falls short when your proximity analysis involves constrained paths such as driving along a road or biking along defined paths.

PostGIS alone can't help you apply costs and resource constraints to your travels, such as traffic congestion, mileage restrictions, or allocating resources like vehicles. pgRouting is a complement to PostGIS that allows you to incorporate costs and path restrictions to your proximity analysis.

pgRouting is well suited to building travel navigation systems and computing driving distance polygons for places of interest. While the main focus of pgRouting is GIS applications, it can be used for non-GIS resource management and routing applications.

Contents

  1. Getting Started with pgRouting
    • Introducing pgRouting
    • A Primer
  2. Working with Data
    • Importing ESRI Shapefiles
    • Importing Textual Data
    • Using ogr2ogr to Load Data
    • Importing OSM Data
    • Foreign Data Wrappers
  3. Working with pgRouting Functions
    • Writing pgRouting Wrapper Functions
    • Data Fixing and Applying Costs
    • Multiple Routes to Single Destination (KSP)
    • Dijkstra In-depth
    • Catchement Areas and Isochrones
    • Traveling Salesperson Problems
    • Vehicle Routing Problems
    • Routing with Turn Restriction Functions
  1. Using QGIS with pgRouting
    • Setting up a PostGIS Connection using PostGIS Add Layer
    • Map View Panel
    • Db Manager Plugin
    • OpenLayers Plugin
    • pgRoutingLayer Plugin
  2. Integrating pgRouting in Web applications
    • Basic Application Setup
    • Database Stored Functions to Support App
    • Web Server-side
    • Client Front-end
    • Web Mapping Client
  3. Appendix
    • Appendix A: changes between pgRouting 2.0 and 2.1
    • Appendix B: Installation extras

For questions regarding this book, please contact: tyler@locatepress.com

To keep up to date on pgRouting and our other books, subscribe to our low-volume newsletter.



Regina Obe is a web application and database expert with extensive experience in PostgreSQL and SQL Server data-driven web applications. She has over 25 years professional experience in various programming languages and database systems. She is an expert on PostGIS spatial database engine and is a member of the PostGIS project steering committee, the PostGIS core development team, pgRouting development team, and GEOS development and project steering committee.

Regina holds a BS degree in mechanical engineering from the Massachusetts Institute of Technology with a concentration in Bioelectronics and control systems.

She is a co-author of the books pgRouting: A Practical Guide (publisher, Locate Press), PostGIS in Action (1st, 2nd, and 3rd editions), published by Manning Publications and PostgreSQL: Up and Running, 3rd Edition, 2nd Edition (and 1st edition) published by O'Reilly Media and upcoming SQL in a Nutshell, 4th edition by O'Reilly Media

Leo Hsu

Leo Hsu, author of pgRouting at Locate Press}}
Latest Book


Leo Hsu is a master database architect with extensive experience building business intelligence and automation applications for flight management, labor unions, and eCommerce sites. He has over 20 years professional experience working for non-profits and Dot coms developing automated pricing and process applications and devising workflow strategies. Leo focuses on database design, application architecture, and overall project management. He is the resident SQL expert. Leo holds an MS degree in engineering of economic systems from Stanford University. He also holds dual BS degrees in mechanical engineering and economics from the Massachusetts Institute of Technology with a minor in Finance. He speaks fluently in both English and Chinese.

He is a co-author PostGIS in Action (1st and 2nd editions, and upcoming 3rd), published by Manning Publications and PostgreSQL: Up and Running 3rd Edition (and 2nd, 1st editions) published by O'Reilly Media, and pgRouting: A Practical Guide (publisher, Locate Press). He is working on 2nd edition of pgRouting with Regina.

Ordering Information

Our paperbacks can be ordered from Amazon or Ingram. E-books (PDF) can be ordered and downloaded directly from our Purchase E-books page.

If you need multiple print copies of our titles, contact us directly to place an order and save up to 20% when you purchase five or more copies. We print in, and ship from USA, UK, and Australia, but can deliver almost anywhere.

To get a quote and/or place an order, please contact us for details. Before you order, please read our Return Policy.

  © Copyright 2011-2022 Locate Press. All Rights Reserved. Design by Nathan Watson    
6.0.0 titan