Skip to main content

As shown in the figure, the arrow (the start point of the line segment points to the end point), how to calculate the coordinates at the red point?

Are you looking for the coordinates of all sinks? (all lines terminate at the node).

If so the TopologyBuilder is your friend.

Send all the lines to the topologyBuilder, in List Accumulation, check off Generate List from Input Edges and provide a list name (ex _node_angle), you don't need to select any attributes.

 

 

On the Node output port examine the _node_angle{}.fme_arc_id list. If all entries are negative then it's a sink. I think the easiest way is to use the ListSearcher, First Greater than 0, and use the NotFound port.

 

 

Then you can use the CoordinateExtractor to get the coordinates for the node.

Reply