Class FeatureCollectionAggregator
java.lang.Object
org.openjump.core.ui.plugin.tools.aggregate.FeatureCollectionAggregator
Creates a new FeatureDataset from a source FeatureCollection,
- a list of attributes to be used as the key
- a list of aggregator function to aggregate attribute values which are not part of the key
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFeatureCollectionAggregator(FeatureCollection fc, List<String> keyAttributes, List<AttributeAggregator> aggregators) -
Method Summary
Modifier and TypeMethodDescriptionReturns a FeatureCollection where attributes defined by aggregators are aggregated on features having the same key.
-
Constructor Details
-
FeatureCollectionAggregator
public FeatureCollectionAggregator(FeatureCollection fc, List<String> keyAttributes, List<AttributeAggregator> aggregators) throws org.openjump.core.ui.plugin.tools.aggregate.FeatureCollectionAggregator.AggregatorException - Throws:
org.openjump.core.ui.plugin.tools.aggregate.FeatureCollectionAggregator.AggregatorException
-
-
Method Details
-
getAggregatedFeatureCollection
Returns a FeatureCollection where attributes defined by aggregators are aggregated on features having the same key. Feature's key are defined by one or more attributes from the source featureCollection.- Returns:
- the featureCollection with aggregated attributes
-