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 class
Converter factory that convertsAggregateProcess.Results
toFeatureCollection
.static enum
static final class
The 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.Results
process
(SimpleFeatureCollection features, String aggAttribute, Set<AggregateProcess.AggregationFunction> functions, Boolean singlePass, ProgressListener progressListener) Computes various attribute statistics over vector data setsstatic AggregateProcess.Results
process
(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:
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
-