Skip to main content
Question

Summarize the length of different types of line segments based on an attribute value

  • January 25, 2019
  • 3 replies
  • 102 views

Forum|alt.badge.img

Hello, I wished to summarize the length each route type based on the Map_NO. For example, in Map_No 000, it will give me the length of the total of Program #1, Program #2 and Islands & Turning Lanes. My reader is a line feature class, and I also have separate Map Index class. Ideally, I would like to have attributes about distance of each route type for the associated Map No. I have tried the Sampler, StatiscticsCalculator, Aggregator etc and they didn't give the result I wanted. Maybe there is anything setting or other transformers I could try? Thank you.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 25, 2019

First use the LengthCalculator to store the length in an attribute LENGTH.

Then use the StatisticsCalculator (group by MAP_NO) attribute to use LENGTH and the SUM output will get you the result.

Hope this helps.


Forum|alt.badge.img
  • Author
  • January 25, 2019
erik_jan wrote:

First use the LengthCalculator to store the length in an attribute LENGTH.

Then use the StatisticsCalculator (group by MAP_NO) attribute to use LENGTH and the SUM output will get you the result.

Hope this helps.

It does give me a lump sum of all the line segments within each Map_No, but it didn't break the value into different line types.


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • January 25, 2019
koala18 wrote:

It does give me a lump sum of all the line segments within each Map_No, but it didn't break the value into different line types.

Hi @koala18,

Please add ROUTE_TYPE to the Group_By.


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