Skip to main content
Solved

Connect lines that touch

  • May 21, 2019
  • 1 reply
  • 146 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.

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.

1 reply

david_r
Celebrity
  • 8394 replies
  • 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.