Solved

Connect lines that touch

  • 21 May 2019
  • 1 reply
  • 30 views

Badge +4

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?

icon

Best answer by david_r 21 May 2019, 16:06

View original

1 reply

Userlevel 4

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.

Reply