|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.filterencoding.AbstractOperation org.deegree.model.filterencoding.SpatialOperation
public class SpatialOperation
Encapsulates the information of a spatial_ops entity (as defined in the Filter DTD).
Field Summary |
---|
Fields inherited from class org.deegree.model.filterencoding.AbstractOperation |
---|
operatorId |
Constructor Summary | |
---|---|
SpatialOperation(int operatorId,
PropertyName propertyName,
Geometry geometry)
Constructs a new SpatialOperation. |
|
SpatialOperation(int operatorId,
PropertyName propertyName,
Geometry geometry,
double d)
Constructs a new SpatialOperation. |
Method Summary | |
---|---|
static Operation |
buildFromDOM(org.w3c.dom.Element element)
Deprecated. use the 1.0.0 filter encoding aware method instead. |
static Operation |
buildFromDOM(org.w3c.dom.Element element,
boolean useVersion_1_0_0)
Given a DOM-fragment, a corresponding Operation-object is built. |
boolean |
evaluate(Feature feature)
Calculates the SpatialOperation's logical value based on the property values of the given Feature. |
double |
getDistance()
returns the distance for geo spatial comparsions such as DWithin or Beyond |
Geometry |
getGeometry()
Returns the geometry literal used in the operation. |
PropertyName |
getPropertyName()
|
void |
setGeometry(Geometry geometry)
sets a geometry for a spatial operation |
void |
setPropertyName(PropertyName name)
This is necessary for the BBOX operator, where the property name can/must be determined later. |
java.lang.StringBuffer |
to100XML()
Produces an XML representation of this object that complies to Filter Encoding specification 1.0.0. |
java.lang.StringBuffer |
to110XML()
Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0. |
java.lang.StringBuffer |
toXML()
Produces an XML representation of this object. |
Methods inherited from class org.deegree.model.filterencoding.AbstractOperation |
---|
getOperatorId, getOperatorName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpatialOperation(int operatorId, PropertyName propertyName, Geometry geometry)
operatorId
- The OperationDefines
idpropertyName
- name of the property to do the spatial compare to.geometry
- the geometry to do the spatial compare to.OperationDefines
public SpatialOperation(int operatorId, PropertyName propertyName, Geometry geometry, double d)
operatorId
- The OperationDefines
idpropertyName
- name of the property to do the spatial compare to.geometry
- the geometry to do the spatial compare to.d
- the distance (a buffer)Calvin added on 10/21/2003
Method Detail |
---|
public double getDistance()
@Deprecated public static Operation buildFromDOM(org.w3c.dom.Element element) throws FilterConstructionException
FilterConstructionException
- if the structure of the DOM-fragment is invalidpublic static Operation buildFromDOM(org.w3c.dom.Element element, boolean useVersion_1_0_0) throws FilterConstructionException
FilterConstructionException
- if the structure of the DOM-fragment is invalidpublic Geometry getGeometry()
public void setGeometry(Geometry geometry)
geometry
- public PropertyName getPropertyName()
public java.lang.StringBuffer toXML()
Operation
public java.lang.StringBuffer to100XML()
Operation
public java.lang.StringBuffer to110XML()
Operation
public boolean evaluate(Feature feature) throws FilterEvaluationException
TODO: Implement operations: CROSSES, BEYOND, OVERLAPS AND TOUCHES.
feature
- that determines the property values
FilterEvaluationException
- if the evaluation failspublic void setPropertyName(PropertyName name)
name
-
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org