GeoAPI 2.0
Build 2005-06-08

org.opengis.filter
Interface Filter

All Known Subinterfaces:
And, BBOX, Beyond, BinaryComparisonOperator, BinaryLogicOperator, BinarySpatialOperator, Contains, Crosses, Disjoint, DistanceBufferOperator, DWithin, Equals, FeatureId, Intersects, Not, Or, Overlaps, PropertyIsBetween, PropertyIsEqualTo, PropertyIsGreaterThan, PropertyIsGreaterThanOrEqualTo, PropertyIsLessThan, PropertyIsLessThanOrEqualTo, PropertyIsLike, PropertyIsNull, SpatialOperator, Touches, Within

@XmlElement(value="Filter")
public interface Filter

The abstract base class for filters. A filter is used to define a set of feature instances that are to be operated upon. The operating set can be comprised of one or more enumerated features or a set of features defined by specifying spatial and non-spatial constraints on the geometric and scalar properties of a feature type.

Roughly speaking, a filter encodes the information present in the WHERE clause of a SQL statement. There are various subclasses of this class that implement many types of filters, such as simple property comparisons or spatial queries.

Since:
GeoAPI 2.0
Version:
Implementation specification 1.0

Method Summary
 Object accept(FilterVisitor visitor, Object extraData)
          Accepts a visitor.
 boolean evaluate(Feature feature)
          Given a feature, this method determines whether the feature passes the test(s) represented by this filter object.
 

Method Detail

evaluate

@Extension
boolean evaluate(Feature feature)
Given a feature, this method determines whether the feature passes the test(s) represented by this filter object.


accept

@Extension
Object accept(FilterVisitor visitor,
                        Object extraData)
Accepts a visitor. Implementations of all subinterfaces must have with a method whose content is the following:
return visitor.visit(this, extraData);


GeoAPI 2.0
Build 2005-06-08

Symbols, terms and definitions
Copyright OpenGIS® Consortium