org.geotools.filter
Class BBoxExpressionImpl
java.lang.Object
org.geotools.filter.expression.ExpressionAbstract
org.geotools.filter.DefaultExpression
org.geotools.filter.LiteralExpressionImpl
org.geotools.filter.BBoxExpressionImpl
- All Implemented Interfaces:
- BBoxExpression, ExpressionType, LiteralExpression, org.opengis.filter.expression.Expression, org.opengis.filter.expression.Literal
public class BBoxExpressionImpl
- extends LiteralExpressionImpl
- implements BBoxExpression
Implements a Bounding Box expression.
Please note this is exactly the same as doing:
filterFactory.literal( JTS.toGeometry( bounds ) );
- Version:
- $Id: BBoxExpressionImpl.java 32203 2009-01-12 12:51:24Z jesseeichar $
- Author:
- Ian Turton, CCG
Fields inherited from interface org.geotools.filter.ExpressionType |
ATTRIBUTE, ATTRIBUTE_DOUBLE, ATTRIBUTE_GEOMETRY, ATTRIBUTE_INTEGER, ATTRIBUTE_STRING, ATTRIBUTE_UNDECLARED, FUNCTION, LITERAL_DOUBLE, LITERAL_GEOMETRY, LITERAL_INTEGER, LITERAL_LONG, LITERAL_STRING, LITERAL_UNDECLARED, MATH_ADD, MATH_DIVIDE, MATH_MULTIPLY, MATH_SUBTRACT |
Fields inherited from interface org.opengis.filter.expression.Expression |
NIL |
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, evaluate, evaluate, getLiteral, getType, getValue, hashCode, setLiteral, setValue, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.filter.expression.Literal |
getValue |
Methods inherited from interface org.opengis.filter.expression.Expression |
accept, evaluate, evaluate |
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.
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.
Copyright © 1996-2010 Geotools. All Rights Reserved.