|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.filter.spatial.SpatialOperator org.deegree.filter.spatial.BBOX
public class BBOX
SpatialOperator
that checks for the intersection of the two geometry operands' envelopes.
Note that the first (@link Expression
) argument may be omitted
:
From 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
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 |
Field Summary |
---|
Fields inherited from class org.deegree.filter.spatial.SpatialOperator |
---|
propName |
Constructor Summary | |
---|---|
BBOX(Envelope param2)
Creates a new BBOX instance which uses the default geometry property and the specified bounding box. |
|
BBOX(Expression param1,
Envelope param2)
Creates a new BBOX instance which uses the specified geometry property and bounding box. |
Method Summary | ||
---|---|---|
|
evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
Determines the value of the boolean operator. |
|
Envelope |
getBoundingBox()
Returns the envelope which is tested for intersection. |
|
Object[] |
getParams()
|
|
ValueReference |
getPropName()
Deprecated. use SpatialOperator.getParam1() instead |
|
String |
toString(String indent)
|
Methods inherited from class org.deegree.filter.spatial.SpatialOperator |
---|
checkGeometryOrNull, getCompatibleGeometry, getParam1, getSubType, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BBOX(Envelope param2)
BBOX
instance which uses the default geometry property and the specified bounding box.
param2
- bounding box argument for intersection testing, never null
public BBOX(Expression param1, Envelope param2)
BBOX
instance which uses the specified geometry property and bounding box.
param1
- param2
- bounding box argument for intersection testing, never null
Method Detail |
---|
public ValueReference getPropName()
SpatialOperator.getParam1()
instead
getPropName
in class SpatialOperator
null
(implies that the default geometry property of the
object should be used)public Envelope getBoundingBox()
null
public <T> boolean evaluate(T obj, XPathEvaluator<T> xpathEvaluator) throws FilterEvaluationException
Operator
T
- type of the context objectobj
- object that the operator is evaluated upon, must not be null
xpathEvaluator
- used for evaluation of XPath expressions, must not be null
FilterEvaluationException
- if the evaluation failspublic String toString(String indent)
public Object[] getParams()
getParams
in class SpatialOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |