Question

LineCombiner - How to ignore orientation of the input lines


Badge

I would like to combine lines into 1 line/route based on an attribute. The LineCombiner seems not to combine lines with a different orientation. So, if two lines have the same starting point, they are not combined. I put the parameter "preserve orientation" on "no", but this doesn't seem to have any result. The result has too many lines (different line at almost each beginning or endpoint of the incoming lines, due to a different orientation). Any suggestions?

LineCombiner


5 replies

Userlevel 6
Badge +31

I can't reproduce your issue and I did not expect I could. I suspect the startpoints are not exactly the same. You can try to fix this with a Snapper transformer upstream the LineCombiner.

Badge +4

Or try the Input Feature Topology to vertex noded.

Badge

I tested both. Setting the Input Feature Topology to vertex noded results in even many more separate lines in the result. The snapper reduces it a little bit, but I still got 120 resulting features, instead of the expected 22. Snapper_LineCombiner

Userlevel 6
Badge +31

I tested both. Setting the Input Feature Topology to vertex noded results in even many more separate lines in the result. The snapper reduces it a little bit, but I still got 120 resulting features, instead of the expected 22. Snapper_LineCombiner

I think you first need to find out what the issue is before we can help you to fix it. If you want more help I think you need to share (a sample of) your data.

Badge

I think I found a clue ... The LineJoiner keeps splitting lines where multiple lines (with different attributes) overlap. So if route F1 and F3 parlly have the same location, the resulting F1-line is split at the point where F1 and F3 get a different route.

Reply