[pgrouting-users] Build the "right" direction in a network, from a fixed starting point

Vicky Vergara vicky at georepublic.de
Tue May 15 03:58:00 PDT 2018


Hi,
Maybe you want to see if all vertices are reachable from the starting (red)
point.
What I would do is a pgr_dijkstra(one to many) and verify which vertices
are not reachable and manually change the direction of the ones that are
not.
Vicky

On Wed, May 9, 2018 at 1:51 AM, andy <aborruso at gmail.com> wrote:

> Hi,
> I have a simple network like the one on the left side of the image below (
> https://i.imgur.com/4mHWfCz.png).
> The line directions of the left side are those I used to draw the lines.
>
> Choosing a starting point (in the image the red one), is there in
> pgrouting a way to assign/calculate the "right" direction of the network
> (the one I have on
> the right)?
> Imagine that this is an hidraulic network in a flat world and that I open
> a water faucet in the red point. I want to "correct" the directions
> highlighted in green on the right, and have the water direction.
>
> Thank you
>
> [image: immagine.png]
>
>
> --
> ___________________
>
> Andrea Borruso
> website: https://medium.com/tantotanto
> 38° 7' 48" N, 13° 21' 9" E, EPSG:4326
> ___________________
>
> "cercare e saper riconoscere chi e cosa,
>  in mezzo all’inferno, non è inferno,
> e farlo durare, e dargli spazio"
>
> Italo Calvino
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pgrouting-users
>



-- 

Georepublic UG (haftungsbeschränkt)
Salzmannstraße 44,
81739 München, Germany

Vicky Vergara
Operations Research

eMail: vicky at georepublic.de
Web: https://georepublic.info

Tel: +49 (089) 4161 7698-1
Fax: +49 (089) 4161 7698-9

Commercial register: Amtsgericht München, HRB 181428
CEO: Daniel Kastl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20180515/e3186829/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: immagine.png
Type: image/png
Size: 22417 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20180515/e3186829/attachment-0001.png>


More information about the Pgrouting-users mailing list