org.geotools.filter.spatial
Class IntersectsImpl
Object
FilterAbstract
AbstractFilter
BinaryComparisonAbstract
GeometryFilterImpl
AbstractPreparedGeometryFilter
IntersectsImpl
- All Implemented Interfaces:
- FilterType, GeometryFilter, BinaryComparisonOperator, Filter, MultiValuedFilter, BinarySpatialOperator, BoundedSpatialOperator, Intersects, SpatialOperator
public class IntersectsImpl
- extends AbstractPreparedGeometryFilter
- implements Intersects
Fields inherited from interface FilterType |
BETWEEN, COMPARE_EQUALS, COMPARE_GREATER_THAN, COMPARE_GREATER_THAN_EQUAL, COMPARE_LESS_THAN, COMPARE_LESS_THAN_EQUAL, COMPARE_NOT_EQUALS, FID, GEOMETRY_BBOX, GEOMETRY_BEYOND, GEOMETRY_CONTAINS, GEOMETRY_CROSSES, GEOMETRY_DISJOINT, GEOMETRY_DWITHIN, GEOMETRY_EQUALS, GEOMETRY_INTERSECTS, GEOMETRY_OVERLAPS, GEOMETRY_TOUCHES, GEOMETRY_WITHIN, LIKE, LOGIC_AND, LOGIC_NOT, LOGIC_OR, NULL |
Methods inherited from class GeometryFilterImpl |
addLeftGeometry, addRightGeometry, equals, evaluate, evaluate, getGeometries, getLeftGeometry, getLeftGeometry, getMatchAction, getRightGeometry, getRightGeometry, hashCode, toString |
IntersectsImpl
public IntersectsImpl(FilterFactory factory,
Expression e1,
Expression e2)
IntersectsImpl
public IntersectsImpl(FilterFactory factory,
Expression e1,
Expression e2,
MultiValuedFilter.MatchAction matchAction)
evaluateInternal
public boolean evaluateInternal(Geometry left,
Geometry right)
- Description copied from class:
GeometryFilterImpl
- Performs the calculation on the two geometries.
- Specified by:
evaluateInternal
in class GeometryFilterImpl
- Parameters:
left
- the geometry on the left of the equations (the geometry obtained from evaluating Expression1)right
- the geometry on the right of the equations (the geometry obtained from evaluating Expression2)
- Returns:
- true if the filter evaluates to true for the two geometries
accept
public Object accept(FilterVisitor visitor,
Object extraData)
- Description copied from class:
FilterAbstract
- Subclass should override, default implementation just returns extraData
- Specified by:
accept
in interface Filter
- Overrides:
accept
in class FilterAbstract
basicEvaluate
protected final boolean basicEvaluate(Geometry left,
Geometry right)
- Description copied from class:
AbstractPreparedGeometryFilter
- Performs the calculation on the two geometries. This is used to calculate the cached value
in the case that both geometries are Literals. But in practice it is useful to extract this functionality
into its own method.
- Specified by:
basicEvaluate
in class AbstractPreparedGeometryFilter
- Parameters:
left
- the geometry on the left of the equations (the geometry obtained from evaluating Expression1)right
- the geometry on the right of the equations (the geometry obtained from evaluating Expression2)
- Returns:
- true if the filter evaluates to true for the two geometries
Copyright © 1996-2014 Geotools. All Rights Reserved.