twaver.gis.ogc.conditions
Class SpatialOperateCondition

java.lang.Object
  extended bytwaver.gis.ogc.conditions.SpatialOperateCondition

public class SpatialOperateCondition
extends java.lang.Object

TWaverGIS implements GetFeature which performs the actual query to help developers increase the interoperability with WFS servers, SpatialOperateCondition is designed to describe the condition of spatial operation when TWaverGIS performs the query. Spatial operations are used to test whether the value of a geometric property, referenced using the name of the property, and a literal geometric value satisfy the spatial relationship implied by the operator.


Constructor Summary
SpatialOperateCondition(int gmlType)
          Constructs SpatialOperateCondition instance.
 
Method Summary
 twaver.GeoCoordinate[] getCoordinates()
          Gets an array of geographical coordinates which is used to describe the GML type.
 double getDistance()
           
 int getGMLType()
          Gets the GML type of the condition.
 int getOperatorType()
          Gets the operator type.
 java.lang.String getUnit()
           
 void setCoordinates(twaver.GeoCoordinate[] coordinates)
          Sets an array of geographical coordinates which is used to describe the GML type.
 void setDistance(double distance)
           
 void setOperatorType(int operatorType)
          Sets the operator type
 void setUnit(java.lang.String unit)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialOperateCondition

public SpatialOperateCondition(int gmlType)
Constructs SpatialOperateCondition instance.

Parameters:
gmlType -
See Also:
TWaverGisConst.GML_TYPE_LINE, TWaverGisConst.GML_TYPE_POINT, TWaverGisConst.GML_TYPE_POINTS, TWaverGisConst.GML_TYPE_POLYGON
Method Detail

getCoordinates

public twaver.GeoCoordinate[] getCoordinates()
Gets an array of geographical coordinates which is used to describe the GML type.

Returns:
the array of geographical coordinates

getDistance

public double getDistance()

getGMLType

public int getGMLType()
Gets the GML type of the condition.

Returns:
the GML type

getOperatorType

public int getOperatorType()
Gets the operator type.

Returns:
the operator type

getUnit

public java.lang.String getUnit()

setCoordinates

public void setCoordinates(twaver.GeoCoordinate[] coordinates)
Sets an array of geographical coordinates which is used to describe the GML type.

Parameters:
coordinates - the array of geographical coordinates

setDistance

public void setDistance(double distance)

setOperatorType

public void setOperatorType(int operatorType)
Sets the operator type

Parameters:
operatorType - the operator type
See Also:
TWaverGisConst.SPATIAL_OPERATOR_TYPE_CONTAIN, TWaverGisConst.SPATIAL_OPERATOR_TYPE_CROSS, TWaverGisConst.SPATIAL_OPERATOR_TYPE_DISJOINT, TWaverGisConst.SPATIAL_OPERATOR_TYPE_DWITHIN, TWaverGisConst.SPATIAL_OPERATOR_TYPE_EQUALS, TWaverGisConst.SPATIAL_OPERATOR_TYPE_INTERSECT, TWaverGisConst.SPATIAL_OPERATOR_TYPE_OVERLAP, TWaverGisConst.SPATIAL_OPERATOR_TYPE_TOUCH, TWaverGisConst.SPATIAL_OPERATOR_TYPE_WITHIN

setUnit

public void setUnit(java.lang.String unit)