deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.filter.spatial
Class BBOX

java.lang.Object
  extended by org.deegree.filter.spatial.SpatialOperator
      extended by org.deegree.filter.spatial.BBOX
All Implemented Interfaces:
Operator

public class BBOX
extends SpatialOperator

SpatialOperator that checks for the intersection of the two geometry operands' envelopes.

Note that the PropertyName argument may be null:

From the Filter Encoding Implementation Specification 1.1: If the optional <PropertyName> element is not specified, the calling service must determine which spatial property is the spatial key and apply the BBOX operator accordingly. For feature types that has a single spatial property, this is a trivial matter. For feature types that have multiple spatial properties, the calling service either knows which spatial property is the spatial key or the calling service generates an exception indicating that the feature contains multiple spatial properties and the element must be specified.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deegree.filter.spatial.SpatialOperator
SpatialOperator.SubType
 
Nested classes/interfaces inherited from interface org.deegree.filter.Operator
Operator.Type
 
Constructor Summary
BBOX(Envelope bbox)
          Creates a new BBOX instance which uses the default geometry property and the specified bounding box.
BBOX(PropertyName propName, Envelope bbox)
          Creates a new BBOX instance which uses the specified geometry property and bounding box.
 
Method Summary
 boolean evaluate(MatchableObject object)
          Determines the value of the boolean operator.
 Envelope getBoundingBox()
          Returns the envelope which is tested for intersection.
 Object[] getParams()
           
 PropertyName getPropertyName()
          Returns the name of the property to be tested for intersection.
 String toString(String indent)
           
 
Methods inherited from class org.deegree.filter.spatial.SpatialOperator
checkGeometryOrNull, getCompatibleGeometry, getSubType, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BBOX

public BBOX(Envelope bbox)
Creates a new BBOX instance which uses the default geometry property and the specified bounding box.

Parameters:
bbox - bounding box argument for intersection testing, never null

BBOX

public BBOX(PropertyName propName,
            Envelope bbox)
Creates a new BBOX instance which uses the specified geometry property and bounding box.

Parameters:
propName -
bbox - bounding box argument for intersection testing, never null
Method Detail

getPropertyName

public PropertyName getPropertyName()
Returns the name of the property to be tested for intersection.

Returns:
the name of the property, may be null (implies that the default geometry property of the object should be used)

getBoundingBox

public Envelope getBoundingBox()
Returns the envelope which is tested for intersection.

Returns:
the envelope, never null

evaluate

public boolean evaluate(MatchableObject object)
                 throws FilterEvaluationException
Description copied from interface: Operator
Determines the value of the boolean operator.

Parameters:
object - MatchableObject to evaluate the operator against
Returns:
true, if the operator evaluates to true, false otherwise
Throws:
FilterEvaluationException - if the evaluation fails

toString

public String toString(String indent)

getParams

public Object[] getParams()
Specified by:
getParams in class SpatialOperator

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>