Package org.geotools.process.vector
Class AggregateProcess
Object
AggregateProcess
- All Implemented Interfaces:
VectorProcess
Computes various attribute statistics over vector data sets.
- Author:
- Andrea Aime
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConverter factory that convertsAggregateProcess.ResultstoFeatureCollection.static enumstatic final classThe aggregate function results -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, boolean singlePass, List<String> groupByAttributes, ProgressListener progressListener) execute(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, boolean singlePass, ProgressListener progressListener) static AggregateProcess.Resultsprocess(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, Boolean singlePass, ProgressListener progressListener) Computes various attribute statistics over vector data setsstatic AggregateProcess.Resultsprocess(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, List<String> groupByAttributes, Boolean singlePass, ProgressListener progressListener)
-
Constructor Details
-
AggregateProcess
public AggregateProcess()
-
-
Method Details
-
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:
ProcessExceptionIOException
-
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:
ProcessExceptionIOException
-
execute
public AggregateProcess.Results execute(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, boolean singlePass, ProgressListener progressListener) throws ProcessException, IOException - Throws:
ProcessExceptionIOException
-
execute
public AggregateProcess.Results execute(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, boolean singlePass, List<String> groupByAttributes, ProgressListener progressListener) throws ProcessException, IOException - Throws:
ProcessExceptionIOException
-