public class TLcdOGCDistanceBuffer extends TLcdDataObject implements ILcdOGCCondition
<ogc:DistanceBufferType>
.
Namely:
<ogc:DWithin>
<ogc:Beyond>
DWithin
and Beyond
test
whether the value of a geometric property is within or beyond a specified distance of the specified literal geometric
value.
A TLcdOGCDistanceBuffer
instance is composed of a spatial operator 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 test, an ILcdShape
instance that indicates the geometry to be considered in the spatial test,
a ILcdGeoReference
that indicates the spatial reference of the given shape in case the shape doesn't contain
one and a TLcdOGCDistance
instance.
Modifier and Type  Field and Description 

static int 
BEYOND
Spatial test type that corresponds to the
<ogc:Beyond> element. 
static int 
DWITHIN
Spatial test type that corresponds to the
<ogc:DWithin> element. 
Constructor and Description 

TLcdOGCDistanceBuffer()
Default constructor.

TLcdOGCDistanceBuffer(int aType,
TLcdOGCPropertyName aPropertyName,
ILcdShape aShape,
ILcdGeoReference aShapeGeoReference,
TLcdOGCDistance aDistance)
Creates an instance for a given for a given spatial test type, a property name, a shape, a spatial reference and a
distance.

Modifier and Type  Method and Description 

boolean 
equals(java.lang.Object obj) 
TLcdOGCDistance 
getDistance()
Gets the distance to be considered in the spatial test.

TLcdOGCPropertyName 
getPropertyName()
Gets the property name that identifies the geometric property to be considered in the spatial test.

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

ILcdGeoReference 
getShapeGeoReference()
Gets the spatial reference of the geometry in case it doesn't contain one.

int 
getType()
Gets the spatial test type.

int 
hashCode() 
void 
setDistance(TLcdOGCDistance aDistance)
Sets the distance to be considered in the spatial test.

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

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 spatial test type.

java.lang.String 
toString() 
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final int DWITHIN
<ogc:DWithin>
element.public static final int BEYOND
<ogc:Beyond>
element.public TLcdOGCDistanceBuffer()
public TLcdOGCDistanceBuffer(int aType, TLcdOGCPropertyName aPropertyName, ILcdShape aShape, ILcdGeoReference aShapeGeoReference, TLcdOGCDistance aDistance)
Creates an instance for a given for a given spatial test type, a property name, a shape, a spatial reference and a distance.
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 test. 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
test.aShape
 the geometry to be considered in the spatial test.aShapeGeoReference
 the spatial reference of the geometry in case it doesn't contain one.aDistance
 the distance to be considered in the spatial test.public int getType()
public void setType(int aType)
aType
 the spatial test type. 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
test.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 TLcdOGCDistance getDistance()
public void setDistance(TLcdOGCDistance aDistance)
aDistance
 the distance to be considered in the spatial test.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