Package org.geotools.process.vector
Class AggregateProcess
- Object
-
- AggregateProcess
-
- All Implemented Interfaces:
VectorProcess
public class AggregateProcess extends Object implements VectorProcess
Computes various attribute statistics over vector data sets.- Author:
- Andrea Aime
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AggregateProcess.AggregationFunction
static class
AggregateProcess.Results
The aggregate function results
-
Constructor Summary
Constructors Constructor Description AggregateProcess()
-
Method Summary
-
-
-
Method Detail
-
process
public static AggregateProcess.Results process(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, Boolean singlePass, ProgressListener progressListener) throws ProcessException, IOException
Computes various attribute statistics over vector data sets- Parameters:
features
- FeatureCollection to aggregateaggAttribute
- target attribute- Returns:
- aggregate Results
- Throws:
ProcessException
IOException
-
process
public static AggregateProcess.Results process(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, List<String> groupByAttributes, Boolean singlePass, ProgressListener progressListener) throws ProcessException, IOException
- Throws:
ProcessException
IOException
-
execute
public AggregateProcess.Results execute(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, boolean singlePass, ProgressListener progressListener) throws ProcessException, IOException
- Throws:
ProcessException
IOException
-
execute
public AggregateProcess.Results execute(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, boolean singlePass, List<String> groupByAttributes, ProgressListener progressListener) throws ProcessException, IOException
- Throws:
ProcessException
IOException
-
-