I'm trying to create the routable network as per http://underdark.wordpress.com/2011/02/07/a-beginners-guide-to-pgrouting/and use assign_vertex_id. Do I still need to create the node table? How would code for creating network look like?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
On this link is a very good tutorial about it. You don't need the node table, you can use the your original table instead. First you have to add two columns to it, called source and target, both integer. After that you run the assign_vertex_id like this:
So here is the whole code, where "ways" is the tablename:
|
|||||
|