|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(Element element)
Deprecated. use the 1.0.0 filter encoding aware method instead. |
static Operation |
buildFromDOM(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. |
StringBuffer |
to100XML()
Produces an XML representation of this object that complies to Filter Encoding specification 1.0.0. |
StringBuffer |
to110XML()
Produces an XML representation of this object that complies to Filter Encoding specification 1.1.0. |
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(Element element)
throws FilterConstructionException
FilterConstructionException - if the structure of the DOM-fragment is invalid
public static Operation buildFromDOM(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 StringBuffer toXML()
Operation
public StringBuffer to100XML()
Operation
public 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.3 (2010/04/09 10:10 build-4-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