Skip to main content
Solved

Detecting Digitization Direction Conflicts in Consecutive Lines

  • March 20, 2025
  • 3 replies
  • 86 views

jugoslaviaa
Enthusiast
Forum|alt.badge.img+6

 

Hi everyone,

I have a set of consecutive lines, and I need to detect when there is a digitization direction conflict between them. As shown in the image below, the green arrows represent the direction of my lines, but Line 2 is oriented differently compared to the others.

Is there a way in FME to detect such conflicts? Ideally, I’d like to flag or filter out the lines that have a reversed direction compared to their neighbors.

 

 

Best answer by dustin

Try the TopologyBuilder with the edge port output. There should be a ‘_from_node’ and ‘_to_node’ attribute on each of lines. Use the Matcher on one of those attributes, and the matched port should produce the lines that are going in the direction of the same node.

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.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+45
  • Influencer
  • March 20, 2025

You should be able to do something with the line combiner. Under advanced settings if you choose the Preserve Orientation option, lines won’t be combined if they are not in the same direction. If you preserve lines as paths you can count the number of parts to see where lines have not been combined (you’ll have to account for the first section separately).

 

You could also choose not to Preserve Orientation, build paths, split them, then look for unmatched geometries between your original lines and the split lines.


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • March 20, 2025

Try the TopologyBuilder with the edge port output. There should be a ‘_from_node’ and ‘_to_node’ attribute on each of lines. Use the Matcher on one of those attributes, and the matched port should produce the lines that are going in the direction of the same node.


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • March 21, 2025

You should be able to do something with the line combiner. Under advanced settings if you choose the Preserve Orientation option, lines won’t be combined if they are not in the same direction. If you preserve lines as paths you can count the number of parts to see where lines have not been combined (you’ll have to account for the first section separately).

 

You could also choose not to Preserve Orientation, build paths, split them, then look for unmatched geometries between your original lines and the split lines.

Unfortunately, it didn’t work. The lines were combined anyway.