Question

Output Percentage of Points By Attribute

  • 22 January 2018
  • 1 reply
  • 1 view

Badge

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

Userlevel 3
Badge +26

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.

Reply