Skip to main content
Question

How can calculate angle between lines ?

  • November 19, 2020
  • 2 replies
  • 408 views

checcosisani
Contributor
Forum|alt.badge.img+12

Hi

I need to calculate the angle between lines in a network (red angle in the picture) I mean the angle between the side road and the main road

 

Thx

Francesco

2 replies

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • November 19, 2020

Hi @checcosisani​ I don't see any picture, but if I'm imagining this correctly you can get the angles of each line at a node if you 'Generate List From Input Edges' on the Nodes in the TopologyBuilder. The list attributes will be sorted by angle, increasing counter-clockwise from East. The angle between lines (first segments from the node) can be calculated something like this: (@Value(edges{1}.fme_arc_angle) - @Value(edges{0}.fme_arc_angle) )


checcosisani
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • November 19, 2020
DanAtSafe wrote:

Hi @checcosisani​ I don't see any picture, but if I'm imagining this correctly you can get the angles of each line at a node if you 'Generate List From Input Edges' on the Nodes in the TopologyBuilder. The list attributes will be sorted by angle, increasing counter-clockwise from East. The angle between lines (first segments from the node) can be calculated something like this: (@Value(edges{1}.fme_arc_angle) - @Value(edges{0}.fme_arc_angle) )

Angle


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