Skip to main content
Question

Length value of a Line in a group exceeds a threshold value, how to exclude the other lines in the same group?


Hi All,

 

This seems like a straightforward issue, but I am struggling to come up with a solution for my workflow.

 

I have created a set of lines within a polygon shape, the set of lines have inherited a '_count' attribute from the parent polygon. Using StatisticsCalculator I have calculated the '_numeric_count', '_sum' and '_mean' for the Lines, grouping using the '_count' attribute.

 

However, when looking at the results I have a need to remove Lengths such as the one highlighted. If any Length in the group is >= 10, for example, how do I exclude the entire group of values? In this case the entire '1947' _count group would be removed and would not pass to the StatisticsCalculator.

 

 

 

Thanks in advance

 

Andrew

2 replies

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • August 28, 2019

Hi @andrewmcg,

Using the Statistics Calculator, use group by as _count and calculate MAX of _length attribute and attach the values using feature merger back to flow (make sure to use unique numbering for easy attaching). Later using tester, stop the groups where MAX >=10


  • Author
  • August 28, 2019
pratap wrote:

Hi @andrewmcg,

Using the Statistics Calculator, use group by as _count and calculate MAX of _length attribute and attach the values using feature merger back to flow (make sure to use unique numbering for easy attaching). Later using tester, stop the groups where MAX >=10

Thanks pratap! using the MAX value with the count grouping solved this, I was able to incorporate this in the workflow without using the feature merger. This seems obvious but I couldn't see that solution, thank you!


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