public class TLcdOGCBinarySpatialOperator extends TLcdDataObject implements ILcdOGCCondition
<ogc:BinarySpatialOpType>
.
Namely:
<ogc:Equals>
<ogc:Disjoint>
<ogc:Touches>
<ogc:Within>
<ogc:Overlaps>
<ogc:Crosses>
<ogc:Intersects>
<ogc:Contains>
A TLcdOGCBinarySpatialOperator
instance is composed of a spatial relationship type that must be one of the
constants defined in this class, a TLcdOGCPropertyName
instance that identifies the geometric property to be
considered in the spatial relationship, an ILcdShape
instance that indicates the geometry to be considered in
the spatial relationship and a ILcdGeoReference
that indicates the spatial reference of the given shape in
case the shape doesn't contain one.
Modifier and Type  Field and Description 

static int 
CONTAINS
Spatial relationship type that corresponds to the
<ogc:Contains> element. 
static int 
CROSSES
Spatial relationship type that corresponds to the
<ogc:Crosses> element. 
static int 
DISJOINT
Spatial relationship type that corresponds to the
<ogc:Disjoint> element. 
static int 
EQUALS
Spatial relationship type that corresponds to the
<ogc:Equals> element. 
static int 
INTERSECTS
Spatial relationship type that corresponds to the
<ogc:Intersects> element. 
static int 
OVERLAPS
Spatial relationship type that corresponds to the
<ogc:Overlaps> element. 
static int 
TOUCHES
Spatial relationship type that corresponds to the
<ogc:Touches> element. 
static int 
WITHIN
Spatial relationship type that corresponds to the
<ogc:Within> element. 
Constructor and Description 

TLcdOGCBinarySpatialOperator()
Default constructor.

TLcdOGCBinarySpatialOperator(int aType,
TLcdOGCPropertyName aPropertyName,
ILcdShape aShape,
ILcdGeoReference aShapeGeoReference)
Constructs an instance for a given spatial relationship type, a property name, a shape and a spatial reference.

Modifier and Type  Method and Description 

boolean 
equals(java.lang.Object obj) 
TLcdOGCPropertyName 
getPropertyName()
Gets the property name that identifies the geometric property to be considered in the spatial relationship.

ILcdShape 
getShape()
Gets the geometry to be considered in the spatial relationship.

ILcdGeoReference 
getShapeGeoReference()
Gets the spatial reference of the geometry.

int 
getType()
Returns the type of the spatial relationship.

int 
hashCode() 
void 
setPropertyName(TLcdOGCPropertyName aPropertyName)
Sets the property name that identifies the geometric property to be considered in the spatial relationship.

void 
setShape(ILcdShape aShape)
Sets the geometry to be considered in the spatial relationship.

void 
setShapeGeoReference(ILcdGeoReference aShapeGeoReference)
Sets the spatial reference of the geometry.

void 
setType(int aType)
Sets the type of the spatial relationship.

java.lang.String 
toString() 
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final int DISJOINT
<ogc:Disjoint>
element.public static final int CROSSES
<ogc:Crosses>
element.public static final int OVERLAPS
<ogc:Overlaps>
element.public static final int WITHIN
<ogc:Within>
element.public static final int INTERSECTS
<ogc:Intersects>
element.public static final int TOUCHES
<ogc:Touches>
element.public static final int CONTAINS
<ogc:Contains>
element.public static final int EQUALS
<ogc:Equals>
element.public TLcdOGCBinarySpatialOperator()
public TLcdOGCBinarySpatialOperator(int aType, TLcdOGCPropertyName aPropertyName, ILcdShape aShape, ILcdGeoReference aShapeGeoReference)
Constructs an instance for a given spatial relationship type, a property name, a shape and a spatial reference.
When evaluating a filter containing this condition, the shape will have to be transformed to the same reference
as the shape under evaluation to perform the spatial test.
When this conversion is not possible, evaluating the filter will result in an IllegalArgumentException
.
If you know the reference of the shapes you will be evaluating in advance, it is therefore recommended to construct this condition
with a shape expressed in the same reference as the shapes you will be evaluating.
Currently, we only support automatic conversion between references for point and bounds shapes.
aType
 the type of the spatial relationship. It must be one of the constants of this class.aPropertyName
 the property name that identifies the geometric property to be considered in the spatial
relationship.aShape
 the geometry to be considered in the spatial relationship.aShapeGeoReference
 the spatial reference of the geometry in case it doesn't contain one.public int getType()
public void setType(int aType)
aType
 the type of the spatial relationship. It must be one of the constants of this class.public TLcdOGCPropertyName getPropertyName()
public void setPropertyName(TLcdOGCPropertyName aPropertyName)
aPropertyName
 the property name that identifies the geometric property to be considered in the spatial
relationship.public ILcdShape getShape()
public void setShape(ILcdShape aShape)
Sets the geometry to be considered in the spatial relationship.
When evaluating a filter containing this condition, the shape will have to be transformed to the same reference
as the shape under evaluation to perform the spatial test.
When this conversion is not possible, evaluating the filter will result in an IllegalArgumentException
.
If you know the reference of the shapes you will be evaluating in advance, it is therefore recommended to construct this condition
with a shape expressed in the same reference as the shapes you will be evaluating.
Currently, we only support automatic conversion between references for point and bounds shapes.
aShape
 the geometry to be considered in the spatial relationship.setShapeGeoReference(ILcdGeoReference)
public ILcdGeoReference getShapeGeoReference()
public void setShapeGeoReference(ILcdGeoReference aShapeGeoReference)
Sets the spatial reference of the geometry.
When evaluating a filter containing this condition, the shape will have to be transformed to the same reference
as the shape under evaluation to perform the spatial test.
When this conversion is not possible, evaluating the filter will result in an IllegalArgumentException
.
If you know the reference of the shapes you will be evaluating in advance, it is therefore recommended to construct this condition
with a shape expressed in the same reference as the shapes you will be evaluating.
Currently, we only support automatic conversion between references for point and bounds shapes.
aShapeGeoReference
 the spatial reference of the geometry.setShape(ILcdShape)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class TLcdDataObject