Package org.geotools.feature.visitor
Class EqualAreaListVisitor
- Object
-
- EqualAreaListVisitor
-
- All Implemented Interfaces:
FeatureVisitor
,FeatureCalc
public class EqualAreaListVisitor extends Object implements FeatureCalc
Obtains the data needed for a Equal Area operation (classification of features into classes each roughly having the same area).The result contains an array of lists with the expression values in each.
- Author:
- Andrea Aime, GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description EqualAreaListVisitor(Expression expression, Expression areaExpression, int bins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNaNCount()
int
getNullCount()
CalcResult
getResult()
Returns the result of the calculation as a handy object which can be merged and modified.void
init(SimpleFeatureCollection collection)
void
reset(int bins)
void
visit(Feature feature)
Visit the provided feature.void
visit(SimpleFeature feature)
-
-
-
Constructor Detail
-
EqualAreaListVisitor
public EqualAreaListVisitor(Expression expression, Expression areaExpression, int bins)
-
-
Method Detail
-
init
public void init(SimpleFeatureCollection collection)
-
getResult
public CalcResult getResult()
Description copied from interface:FeatureCalc
Returns the result of the calculation as a handy object which can be merged and modified.- Specified by:
getResult
in interfaceFeatureCalc
- Returns:
- the results of the calculation
-
visit
public void visit(SimpleFeature feature)
-
visit
public void visit(Feature feature)
Description copied from interface:FeatureVisitor
Visit the provided feature.Please consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
- Specified by:
visit
in interfaceFeatureVisitor
-
reset
public void reset(int bins)
-
getNaNCount
public int getNaNCount()
- Returns:
- the number of features which returned a NaN
-
getNullCount
public int getNullCount()
- Returns:
- the number of features which returned a null
-
-