pgRouting is a powerful tool for users to handle routing tasks, and I am now use pgRouting 2.1 to route a river (line shapefile).
Before starting to route, the first thing to do is always to create a routable table, and I use pgr_createTopology to create source and target of any edge.
Here is the problem, if I want every direction of 'from-source-to-target' in all edges to be the same, I need to check and renumber them manually.
Is there an efficient way to achieve this?
P.S. I have seen the following posts, and still have no idea to solve this problem. PGR_CREATETOPOLOGY