Question

Detecting not connected lines

  • 3 July 2019
  • 1 reply
  • 0 views

Badge +1

Hi,

 

I would like to detect lines, with the same attribute name - ID, that are not connected (they are splited but it shouldnt be so). Any suggestions?


1 reply

Userlevel 2
Badge +12

I would use the LineCombiner transformer (group by ID).

Then a StatisticsCalculator transformer (use the ID attribute as group by), and use the count statistic.

Now using a Tester transformer on the complete port of the StatisticsCalculator you can filter all not connecting lines (count > 1).

Hope this helps.

Reply