Using a geometric network, traversing from Source to all sinks, I am looking for a solution that will derive statistics on each junction that would tell me number of junctions downstream, branches on each junction downstream and lengths of every segment on each branch of the junction towards the sinks..I thought I've seen a custom transformer that can partially do this but I can't find it.
Solved
Network Statistics calculator

Best answer by takashi
Hi @geospatiallover, I would try this.
- Create network nodes and edges from the original network lines using the TopologyBuilder.
- Calculate the length of every edge and add it to them as an attribute.
- Create 'from-to' lines between each junction and the source.
- Create shortest paths on the network edges for each 'from-to' line using the ShortestPathFinder. Set the Segment Attribute List parameter.
Each resulting path will have a list attribute containing lengths of segments in the path, and you can get the number of junctions on the path based on the number of elements of the list.
Then, regarding the number of branches on each junction,
- Extract junctions (points) from the path. Probably the PathSplitter and Snipper can be used.
- Relate the junctions with the network nodes using the SpatialRelator.
Every network node created by the TopolgyBuilder has a list attribute containing information of topologically connecting edges. You can merge the list to each junction with this spatial operation and then get the number of branches based on the number of elements of the list.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.