Class FeatureCollectionAggregator
- java.lang.Object
-
- org.openjump.core.ui.plugin.tools.aggregate.FeatureCollectionAggregator
-
public class FeatureCollectionAggregator extends Object
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 Modifier and Type Class Description static class
FeatureCollectionAggregator.Key
-
Constructor Summary
Constructors Constructor Description FeatureCollectionAggregator​(FeatureCollection fc, List<String> keyAttributes, List<AttributeAggregator> aggregators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureCollection
getAggregatedFeatureCollection()
Returns a FeatureCollection where attributes defined by aggregators are aggregated on features having the same key.
-
-
-
Constructor Detail
-
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 Detail
-
getAggregatedFeatureCollection
public FeatureCollection 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
-
-