org.geotools.feature.visitor
Class BoundsVisitor

Object
  extended by BoundsVisitor
All Implemented Interfaces:
FeatureCalc, FeatureVisitor

public class BoundsVisitor
extends Object
implements FeatureCalc

Calculates the extents (envelope) of the features it visits.

Since:
2.2.M2
Author:
Cory Horner, Refractions
Module:
modules/library/main (gt-main.jar)

Nested Class Summary
static class BoundsVisitor.BoundsResult
           
 
Constructor Summary
BoundsVisitor()
           
 
Method Summary
 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)
           
 void visit(SimpleFeature feature)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundsVisitor

public BoundsVisitor()
Method Detail

visit

public void visit(SimpleFeature feature)

visit

public void visit(Feature feature)
Specified by:
visit in interface FeatureVisitor

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 interface FeatureCalc
Returns:
the results of the calculation


Copyright © 1996-2009 Geotools. All Rights Reserved.