Skip to main content
Question

Lineonlineoverlayer count segments


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

2 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • April 17, 2014
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

takashi
Evangelist
  • April 17, 2014
Hi,

 

 

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

 

 

Takashi

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings