1

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

How does assign_vertex_id() in pgRouting work?

pgRouting assign number of source and target

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.