2

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?

1 Answer 1

1

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.

3
  • 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
    Commented Jul 13, 2012 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
    Commented Jul 13, 2012 at 2:06
  • How are you plotting the nodes? Did you select the IDs so you can use labeling?
    – underdark
    Commented Jul 13, 2012 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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