Skip to main content
Question

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

  • January 25, 2019
  • 3 replies
  • 128 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.

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.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • 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
  • 4 replies
  • 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.

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
  • 1637 replies
  • January 25, 2019

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.