|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.filter.spatial.SpatialOperator
public abstract class SpatialOperator
Defines a topological predicate that can be evaluated on Geometry
valued objects.
Nested Class Summary | |
---|---|
static class |
SpatialOperator.SubType
Convenience enum type for discriminating the different SpatialOperator types. |
Nested classes/interfaces inherited from interface org.deegree.filter.Operator |
---|
Operator.Type |
Field Summary | |
---|---|
protected Expression |
propName
|
Constructor Summary | |
---|---|
protected |
SpatialOperator(Expression param1)
|
Method Summary | |
---|---|
protected Geometry |
checkGeometryOrNull(TypedObjectNode value)
Performs a checked cast to Geometry . |
protected Geometry |
getCompatibleGeometry(Geometry param,
Geometry literal)
Returns a version of the given geometry literal that has the same srs as the given geometry parameter. |
Expression |
getParam1()
Returns the first spatial parameter. |
abstract Object[] |
getParams()
|
ValueReference |
getPropName()
Deprecated. use getParam1() instead |
SpatialOperator.SubType |
getSubType()
Returns the type of spatial operator. |
Operator.Type |
getType()
Always returns Operator.Type#SPATIAL (for SpatialOperator instances). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.filter.Operator |
---|
evaluate, toString |
Field Detail |
---|
protected final Expression propName
Constructor Detail |
---|
protected SpatialOperator(Expression param1)
Method Detail |
---|
public Operator.Type getType()
Operator.Type#SPATIAL
(for SpatialOperator
instances).
getType
in interface Operator
Operator.Type#SPATIAL
public SpatialOperator.SubType getSubType()
SpatialOperator
.
public Expression getParam1()
null
(target default geometry property of object)public ValueReference getPropName()
getParam1()
instead
null
(target default geometry property of object)protected Geometry checkGeometryOrNull(TypedObjectNode value) throws FilterEvaluationException
Geometry
. If the given value is neither null nor a Geometry
instance,
a corresponding FilterEvaluationException
is thrown.
value
-
Geometry
or null
)
FilterEvaluationException
- if the value is neither null
nor a Geometry
protected Geometry getCompatibleGeometry(Geometry param, Geometry literal) throws FilterEvaluationException
param
- geometry parameter, must not be null
literal
- geometry literal, must not be null
FilterEvaluationException
- if the transformation failedpublic abstract Object[] getParams()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |