org.geotools.filter.spatial
Class IntersectsImpl
java.lang.Object
org.geotools.filter.FilterAbstract
org.geotools.filter.AbstractFilter
org.geotools.filter.BinaryComparisonAbstract
org.geotools.filter.GeometryFilterImpl
org.geotools.filter.spatial.AbstractPreparedGeometryFilter
org.geotools.filter.spatial.IntersectsImpl
- All Implemented Interfaces:
- FilterType, GeometryFilter, org.opengis.filter.BinaryComparisonOperator, org.opengis.filter.Filter, org.opengis.filter.spatial.BinarySpatialOperator, org.opengis.filter.spatial.BoundedSpatialOperator, org.opengis.filter.spatial.Intersects, org.opengis.filter.spatial.SpatialOperator
public class IntersectsImpl
- extends AbstractPreparedGeometryFilter
- implements org.opengis.filter.spatial.Intersects
Fields inherited from interface org.opengis.filter.spatial.Intersects |
NAME |
Fields inherited from interface org.opengis.filter.Filter |
EXCLUDE, INCLUDE |
Fields inherited from interface org.geotools.filter.Filter |
ALL, NONE |
Fields inherited from interface org.geotools.filter.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 |
Constructor Summary |
IntersectsImpl(org.opengis.filter.FilterFactory factory,
org.opengis.filter.expression.Expression e1,
org.opengis.filter.expression.Expression e2)
|
Method Summary |
java.lang.Object |
accept(org.opengis.filter.FilterVisitor visitor,
java.lang.Object extraData)
Subclass should override, default implementation just returns extraData |
protected boolean |
basicEvaluate(com.vividsolutions.jts.geom.Geometry left,
com.vividsolutions.jts.geom.Geometry right)
Performs the calculation on the two geometries. |
boolean |
evaluate(java.lang.Object feature)
|
Methods inherited from class org.geotools.filter.GeometryFilterImpl |
addLeftGeometry, addRightGeometry, equals, evaluate, getLeftGeometry, getLeftGeometry, getRightGeometry, getRightGeometry, hashCode, toString, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.filter.spatial.BinarySpatialOperator |
getExpression1, getExpression2 |
IntersectsImpl
public IntersectsImpl(org.opengis.filter.FilterFactory factory,
org.opengis.filter.expression.Expression e1,
org.opengis.filter.expression.Expression e2)
evaluate
public boolean evaluate(java.lang.Object feature)
- Specified by:
evaluate
in interface org.opengis.filter.Filter
accept
public java.lang.Object accept(org.opengis.filter.FilterVisitor visitor,
java.lang.Object extraData)
- Description copied from class:
FilterAbstract
- Subclass should override, default implementation just returns extraData
- Specified by:
accept
in interface org.opengis.filter.Filter
- Overrides:
accept
in class FilterAbstract
basicEvaluate
protected final boolean basicEvaluate(com.vividsolutions.jts.geom.Geometry left,
com.vividsolutions.jts.geom.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-2010 Geotools. All Rights Reserved.