public class Contains extends SpatialFilter
The abstract class of <Contains> elements.
Contains is a spatial operator representing the containing operation, i.e., confining result features to ones that contain a specified geometric object. The dimension of the specified geometric object cannot be higher than that of the element.
A Contains 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 |
|---|
Contains()
The constructor.
|
Contains(PropertyName propertyName, Geometry geometry)
Constructs an object of
Contains with a null name according to the name of the field storing the geometric object and the target geometric object participating in the operation. |
Contains(PropertyName property, GeometryExpression geometry)
Constructs an object of
Contains named "Contains" 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, setSubExpressioncopy, getName, getSubExpression, getSubExpressionCountpublic Contains()
The constructor.
Constructs an object of Contains with the name "Contains" and null child Filter elements.
public Contains(PropertyName property, GeometryExpression geometry)
Constructs an object of Contains named "Contains" 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 Contains(PropertyName propertyName, Geometry geometry) throws OGCException
Constructs an object of Contains 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 - The target geometric object.OGCException - An OGC service exception.public void accept(AbstractFilterVisitor visitor) throws OGCException
accept in class FilterOGCExceptionpublic FilterType getFilterType()
FilterGets the Filter element type.
getFilterType in class Filter