Skip to main content
Solved

Connect lines that touch

  • May 21, 2019
  • 1 reply
  • 111 views

arnovananrooij
Contributor
Forum|alt.badge.img+5

Hi Community,

I have a lot of lines which are generated from raster centerpoints. All the lines consist of 2 vertexes. I would like to aggregate all the lines that touch to one feature. I tried this using the Linecombiner but this transformer doesn't connect lines when more than two lines come together. Any suggestions?

Best answer by david_r

Have a look at the NetworkTopologyCalculator, the resulting attribute _network_id will denote each separate group of connected lines.

If you need to create aggregates from the result, use the Aggregator and set the Group By on the _network_id.

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

1 reply

david_r
Celebrity
  • Best Answer
  • May 21, 2019

Have a look at the NetworkTopologyCalculator, the resulting attribute _network_id will denote each separate group of connected lines.

If you need to create aggregates from the result, use the Aggregator and set the Group By on the _network_id.


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