I'm working with an electrical network with feeders and branches. I'd like to add the coordinates of the intersection points with the feeders as attributes in the branches. I managed to do this in the first segment using the Intersector and SpatialFilter transformers, but I had trouble adding them to the downstream segments. I have a common field for each branch that can be obtained using networkTopology. So, my question is how to create conditional queries to add the coordinate values of the intersection points with the downstream branches (see attached diagram).
Thank you @crutledge for your quick response. I've already extracted the start and end of each segment (vertexCreator), but I'm having trouble passing attributes while looping through downstream branches. Could you explain this process better?
Ah. Understood (I think 😀) So, you were successful in getting the x,y from red lines to the FIRST blue line (downstream), Next step would be to put a tester for x,y is not null for the blue lines and spatial join those (passed the tester) to the rest of the blue lines (failed the tester). So you are “walking” the attributes down the lines. repeat as necessary. Did I understand that correctly? Hope that helps.
The number of downstream branches is large and unknown in advance. Therefore, it is impossible to install multiple testers. It is therefore necessary to automate the process (see attached diagram).
How to configure this?
Hi @gennine ,
I think you can use NetworkTopologyCalculator to add network ID different for each connected network to the feeders (blue lines in your screenshot), and then merge the intersect coordinates to every feeder using the network ID as join key. For example, add P1 (x1, y1) to every feeder with network ID = 1, add P2 (x2, y2) to every feeder with ID = 2, etc.
Many thanks @takashi, it works perfectly and avoid looping.