org.geotools.feature.visitor
Class BoundsVisitor
java.lang.Object
org.geotools.feature.visitor.BoundsVisitor
- All Implemented Interfaces:
- FeatureCalc, org.opengis.feature.FeatureVisitor
public class BoundsVisitor
- extends java.lang.Object
- implements FeatureCalc
Calculates the extents (envelope) of the features it visits.
- Since:
- 2.2.M2
- Author:
- Cory Horner, Refractions
Method Summary |
ReferencedEnvelope |
getBounds()
|
CalcResult |
getResult()
Returns the result of the calculation as a handy object which can be merged and modified. |
void |
reset(com.vividsolutions.jts.geom.Envelope bounds)
|
void |
visit(org.opengis.feature.Feature feature)
|
void |
visit(org.opengis.feature.simple.SimpleFeature feature)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundsVisitor
public BoundsVisitor()
visit
public void visit(org.opengis.feature.simple.SimpleFeature feature)
visit
public void visit(org.opengis.feature.Feature feature)
- Specified by:
visit
in interface org.opengis.feature.FeatureVisitor
getBounds
public ReferencedEnvelope getBounds()
reset
public void reset(com.vividsolutions.jts.geom.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 interface FeatureCalc
- Returns:
- the results of the calculation
Copyright © 1996-2010 Geotools. All Rights Reserved.