Skip to main content
Question

How can calculate angle between lines ?

  • November 19, 2020
  • 2 replies
  • 594 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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

DanAtSafe
Safer
Forum|alt.badge.img+21
  • 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

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