Question

intersection angle between line and polygon


Badge

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?


2 replies

Userlevel 4

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.

Userlevel 4

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

Reply