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.
Page 1 / 1
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.