Skip to main content
Solved

How to calculate the position at the red point?

  • November 28, 2019
  • 1 reply
  • 7 views

charry
Supporter
Forum|alt.badge.img+5

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?

Best answer by jdh

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.
View original
Did this help you find an answer to your question?

1 reply

jdh
Contributor
Forum|alt.badge.img+33
  • Contributor
  • Best Answer
  • November 28, 2019

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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings