org.deegree.filter.spatial
Class DWithin
java.lang.Object
org.deegree.filter.spatial.SpatialOperator
org.deegree.filter.spatial.DWithin
- All Implemented Interfaces:
- Operator
public class DWithin
- extends SpatialOperator
If geometries are within the specified distance of one another.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , last edited by: $Author:$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DWithin
public DWithin(Expression propName,
Geometry geometry,
Measure distance)
evaluate
public <T> boolean evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
throws FilterEvaluationException
- Description copied from interface:
Operator
- Determines the value of the boolean operator.
- Type Parameters:
T
- type of the context object- Parameters:
obj
- object that the operator is evaluated upon, must not be null
xpathEvaluator
- used for evaluation of XPath expressions, must not be null
- Returns:
- true, if the operator evaluates to true, false otherwise
- Throws:
FilterEvaluationException
- if the evaluation fails
getGeometry
public Geometry getGeometry()
- Returns:
- the geometry
getDistance
public Measure getDistance()
- Returns:
- the distance
toString
public String toString(String indent)
getParams
public Object[] getParams()
- Specified by:
getParams
in class SpatialOperator
Copyright © 2011. All Rights Reserved.