Package org.geotools.feature.visitor
Class BoundsVisitor
- Object
-
- BoundsVisitor
-
- All Implemented Interfaces:
FeatureVisitor
,FeatureCalc
public class BoundsVisitor extends Object implements FeatureCalc
Calculates the extents (envelope) of the features it visits.- Since:
- 2.2.M2
- Author:
- Cory Horner, Refractions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BoundsVisitor.BoundsResult
-
Constructor Summary
Constructors Constructor Description BoundsVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencedEnvelope
getBounds()
CalcResult
getResult()
Returns the result of the calculation as a handy object which can be merged and modified.void
reset(Envelope bounds)
void
visit(Feature feature)
Visit the provided feature.
-
-
-
Method Detail
-
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
-
getBounds
public ReferencedEnvelope getBounds()
-
reset
public void reset(Envelope bounds)
-
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
-
-