Package org.geotools.feature.visitor
Class SumAreaVisitor
Object
SumVisitor
SumAreaVisitor
- All Implemented Interfaces:
FeatureVisitor
,FeatureAttributeVisitor
,FeatureCalc
Calculates the Sum of Areas for geometric fields
- Author:
- Mauro Bartolomeoli
-
Nested Class Summary
Nested classes/interfaces inherited from class SumVisitor
SumVisitor.SumResult, SumVisitor.SumStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionSumAreaVisitor
(int attributeTypeIndex, SimpleFeatureType type) SumAreaVisitor
(String attrName, SimpleFeatureType type) SumAreaVisitor
(Expression expr) -
Method Summary
Modifier and TypeMethodDescriptiongetResultType
(List<Class> inputTypes) Returns the expected output type given the input type.void
Visit the provided feature.void
visit
(SimpleFeature feature) Methods inherited from class SumVisitor
getExpression, getExpressions, getResult, getSum, init, reset, setStrategy, setValue
-
Constructor Details
-
SumAreaVisitor
- Throws:
IllegalFilterException
-
SumAreaVisitor
- Throws:
IllegalFilterException
-
SumAreaVisitor
- Throws:
IllegalFilterException
-
-
Method Details
-
visit
- Overrides:
visit
in classSumVisitor
-
visit
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
- Overrides:
visit
in classSumVisitor
-
getResultType
Description copied from interface:FeatureAttributeVisitor
Returns the expected output type given the input type.- Specified by:
getResultType
in interfaceFeatureAttributeVisitor
- Overrides:
getResultType
in classSumVisitor
- Parameters:
inputTypes
- The type of the input expressions
-