Question

Group Polylines Spatially

  • 10 January 2020
  • 2 replies
  • 2 views

Badge +1

Hi,

I have a road network that I want to group on spatial basis. I want to group the roads on 3 valent or more junction on the basis of connectivity.

I have tried using TopologyBuilder and ListElementCounter to calculate the node valency, but not getting how to group them.

I have uploaded the data in the attachment.

 

Thanks.


2 replies

Badge

Hi,

I guess I lack some details. Anyway, From what I'm seeing , Maybe You just need to use LineCombiner transformer.

Badge +3

To look at this another way, it appears what is needed is instead to find lines that touch at their end points and there are no more than 2 lines touching each other at their end points, and to group them together.

This is the default behaviour of LineCombiner. This will create a List of line segments that touch each other at their end "Junction" points and the valency is no more than 2 line end points touching that Junction.

Sending the LIneCombiner output to a Counter will then put a "Group ID" integer against the groups of combined lines.

 

Reply