org.geotools.filter
Class BBoxExpressionImpl

java.lang.Object
  extended byorg.geotools.filter.expression.ExpressionAbstract
      extended byorg.geotools.filter.DefaultExpression
          extended byorg.geotools.filter.LiteralExpressionImpl
              extended byorg.geotools.filter.BBoxExpressionImpl
All Implemented Interfaces:
BBoxExpression, org.opengis.filter.expression.Expression, Expression, ExpressionType, org.opengis.filter.expression.Literal, LiteralExpression

public class BBoxExpressionImpl
extends LiteralExpressionImpl
implements BBoxExpression

Implements a Bounding Box expression.

Version:
$Id: BBoxExpressionImpl.java 18021 2006-02-14 20:36:18Z jdeolive $
Author:
Ian Turton, CCG

Field Summary
 
Fields inherited from class org.geotools.filter.DefaultExpression
expressionType, permissiveConstruction
 
Fields inherited from interface org.geotools.filter.expression.ExpressionType
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_STRING, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT
 
Constructor Summary
protected BBoxExpressionImpl()
          Creates a new instance of BBoxExpression
protected BBoxExpressionImpl(com.vividsolutions.jts.geom.Envelope env)
          Creates a new instance of BBoxExpression, with an initial box.
 
Method Summary
 void setBounds(com.vividsolutions.jts.geom.Envelope env)
          Set the bbox for this expression
 
Methods inherited from class org.geotools.filter.LiteralExpressionImpl
accept, equals, evaluate, getLiteral, getType, getValue, hashCode, setLiteral, setValue, toString
 
Methods inherited from class org.geotools.filter.DefaultExpression
accept, evaluate, getValue, isAttributeExpression, isExpression, isGeometryExpression, isLiteralExpression, isMathExpression, isMathExpression
 
Methods inherited from class org.geotools.filter.expression.ExpressionAbstract
eval
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.filter.expression.LiteralExpression
getLiteral, getType, getValue, setLiteral
 
Methods inherited from interface org.geotools.filter.expression.Expression
accept, evaluate
 
Methods inherited from interface org.opengis.filter.expression.Expression
accept, evaluate
 
Methods inherited from interface org.opengis.filter.expression.Literal
getValue, setValue
 

Constructor Detail

BBoxExpressionImpl

protected BBoxExpressionImpl()
                      throws IllegalFilterException
Creates a new instance of BBoxExpression

Throws:
IllegalFilterException - if there are problems.

BBoxExpressionImpl

protected BBoxExpressionImpl(com.vividsolutions.jts.geom.Envelope env)
                      throws IllegalFilterException
Creates a new instance of BBoxExpression, with an initial box.

Parameters:
env - the envelope to set as the box.
Throws:
IllegalFilterException - if there are problems.
Method Detail

setBounds

public final void setBounds(com.vividsolutions.jts.geom.Envelope env)
                     throws IllegalFilterException
Set the bbox for this expression

Specified by:
setBounds in interface BBoxExpression
Parameters:
env - The envelope to set as the bounds.
Throws:
IllegalFilterException - If the box can not be created.
Task:
HACK: currently sets the SRID to null, which can cause problems with JTS when it comes to doing spatial tests


Copyright © GeoTools. All Rights Reserved.