public class Within extends SpatialFilter
The abstract class of <Within> elements.
Within is a spatial operator representing the within relationship, i.e., confining the result features to ones spatially located within a specified geometric object. The dimension of the specified geometric object cannot be lower than that of the features.
A Within element consists of the name of the field storing geometric object, and the target geometric object participating in the operation.
name, subExpression
Constructor and Description |
---|
Within()
The constructor.
|
Within(PropertyName propertyName, Geometry geometry)
Constructs an object of
Within with a null name according to the name of the field storing the geometric object and the target geometric object participating in the operation. |
Within(PropertyName property, GeometryExpression geometry)
Constructs an object of
Within named "Within" according to the name of the field storing the geometric object and the target geometric object participating in the operation. |
Modifier and Type | Method and Description |
---|---|
void |
accept(AbstractFilterVisitor visitor) |
FilterType |
getFilterType()
Gets the Filter element type.
|
getGeometry, getPropertyName, setSubExpression
copy, getName, getSubExpression, getSubExpressionCount
public Within(PropertyName property, GeometryExpression geometry)
Constructs an object of Within
named "Within" according to the name of the field storing the geometric object and the target geometric object participating in the operation.
property
- An abstract object of the <PropertyName> element, representing the name of the field storing the geometric object.geometry
- The target geometric object.public Within(PropertyName propertyName, Geometry geometry) throws OGCException
Constructs an object of Within
with a null name according to the name of the field storing the geometric object and the target geometric object participating in the operation.
propertyName
- An abstract object of the <PropertyName> element, representing the name of the field storing the geometric object.geometry
- Geometric objects in SuperMap iServer.OGCException
- An OGC service exception.public Within()
The constructor.
public void accept(AbstractFilterVisitor visitor) throws OGCException
accept
in class Filter
OGCException
public FilterType getFilterType()
Filter
Gets the Filter element type.
getFilterType
in class Filter