Skip to main content
Question

Output Percentage of Points By Attribute

  • January 22, 2018
  • 1 reply
  • 8 views

Forum|alt.badge.img

I'm trying to output to .csv the percentage of points by attribute. I am first selecting the points by polygon using FeatureReader and then would like to select points by attribute, calculate the percentage of points with that attribute, and output ot .csv.

1 reply

dustin
Influencer
Forum|alt.badge.img+30
  • Influencer
  • January 22, 2018

You can do this using two StatisticCalculator. The first will get the total count of all features, so no group by. Feed this into a 2nd StatisticCalculator, with the group by set to your attribute. This will give you the count for each feature in the attribute subset. Then use an ExpressionEvaluator to calculate the percentage.


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