Skip to main content
Question

Output Percentage of Points By Attribute

  • January 22, 2018
  • 1 reply
  • 12 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.

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.

1 reply

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • 629 replies
  • 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.