Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I tried to visualize the graph generated by osm2po and rendered that graph in qgis. Now what I am trying to do is plot the vertices in the graph. So that I can visually see where the nodes/vertices are. I have attached a screenshot of the visualization I have up to now.

enter image description here

I want to actually see the nodes in this

I followed the suggestion as given by underdark. However, I could see that the number of nodes and edges is less than that in the database. In the database the number of nodes = 32 and the number of edges = 39. However in my case it is 31 nodes only and 38 edges only. What could be the reason?

enter image description here

share|improve this question
    
do you want also the line start/end points? –  lynxlynxlynx Jun 14 '12 at 19:05

3 Answers 3

I guess you mean something like this:

enter image description here

Create a symbol with one line layer and two marker layers. Put the markers on the first and on the last vertex:

enter image description here

share|improve this answer
    
Hi underdark, I followed the same method you mentioned and I could see the nodes. However, the number of nodes is less that that available in the database. I have total of 32, but in the plot which I am attaching to the original question it is less than that. Also the number of edges are lower in number. What could be the reason? –  user31820 Jun 15 '12 at 14:11
    
maybe duplicates with exactly the same geometry? it's hard to guess without being able to inspect the data. –  underdark Jun 15 '12 at 16:07

Another way is to enable the this line (by removing the leading #) in the config.

postp.2.class = de.cm.osm2po.plugins.PgVertexWriter

It's another osm2po-table which contains the vertices.

share|improve this answer

Go to the menu Vector -> Analysis tools -> Line intersections and you can create a point layer with some of the nodes.

share|improve this answer

Your Answer

 
discard

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.