Skip to main content
Question

intersection angle between line and polygon

  • March 2, 2017
  • 2 replies
  • 98 views

Forum|alt.badge.img

I'm having polygon features (tunnels) and lines (railroads). Now I'm trying to figure out at which angle the lines enter and exit the polygon features.

Is there any way to do this?

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

david_r
Celebrity
  • March 2, 2017

How about calculating the azimuth (AzimuthCalculator) for both the tunnel and the track segments, then using e.g. a LineOnAreaOverlayer to pair the track segments with their respective tunnels, then calculating the difference in azimuth.


david_r
Celebrity
  • March 2, 2017

You can also use the TopologyBuilder and analyse the node angles at the tunnel intersections, specifically _node_angle{}.fme_arc_id and _node_angle{}.fme_arc_angle

Doc: http://docs.safe.com/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Transformers/topologybuilder.htm