Skip to main content
Question

Lineonlineoverlayer count segments

  • April 17, 2014
  • 2 replies
  • 40 views

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
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.

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
Celebrity
  • 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