Skip to main content
Solved

Detecting Digitization Direction Conflicts in Consecutive Lines


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 jugoslaviaa

ebygomm wrote:

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.

 

View original
Did this help you find an answer to your question?

3 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • 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+30
  • Influencer
  • 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
  • Best Answer
  • March 21, 2025
ebygomm wrote:

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.

 


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