Skip to main content
I am splitting a line feature class against another class using lineonlineoverlayer. I want a counter for each segment. If an input segment is split into three segments I want a counter going 0-2. The Counter transformer simply counts the total number of features output. Is there something that increments the number of times an individual input segment is split?

 

 

Here's a sample of what I am looking for. FromID is the input OID.

 

 

FromID  Segment

 

1                  0

 

1                  1

 

1                  2

 

2                  0

 

3                  0

 

3                  1

 

4                  0
Hi,

 

 

If u have an ID on the inputlines, you can build a list with the ID as group by attribute after the LoLo.

 

If u then use a listexploder, the element_index will give u the count.

 

 

 

Gio
Hi,

 

 

Alternatively, you can specify "FromID" (Attribute Value) to Counter Name parameter of the Counter. It brings something like Group By.

 

 

Takashi

Reply