Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using qgis and pgrouting plugin to find the shortest path between two nodes and display the route. Currently, the plot shows the shortest path. However, I also want to know which nodes the path passes through. So is it possible to actually get this information?

share|improve this question

Presumably you are using Postgresql, PostGIS and pgrouting.

pgrouting returns a result set of nodes that represent the nodes within the shortest path.

A simple way to plot this in qgis is to save the shortest path result set into a table in postgresql (use an select into statement).

Once you have the table in postgresql, you will be add that table as a separate layer in your project.

share|improve this answer
I just have a set of nodes that I need to plot on the map. I don't have them in the database just a set of nodes like 1-152-2-50 that defines the path for example – user31820 Jul 13 '12 at 1:17
Well I managed to plot the nodes. But I want to know their ids as well. Is there any possible way to visualize their id as well – user31820 Jul 13 '12 at 2:06
How are you plotting the nodes? Did you select the IDs so you can use labeling? – underdark Jul 13 '12 at 10:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.