org.geotools.filter.spatial
Class BBOXImpl
Object
FilterAbstract
AbstractFilter
BinaryComparisonAbstract
GeometryFilterImpl
AbstractPreparedGeometryFilter
BBOXImpl
- All Implemented Interfaces:
- FilterType, GeometryFilter, BinaryComparisonOperator, Filter, BBOX, BinarySpatialOperator, SpatialOperator
public class BBOXImpl
- extends AbstractPreparedGeometryFilter
- implements BBOX
Fields inherited from interface BBOX |
NAME |
Fields inherited from interface Filter |
EXCLUDE, INCLUDE |
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 |
Constructor Summary |
BBOXImpl(FilterFactory factory,
Expression e1,
Expression e2)
|
BBOXImpl(FilterFactoryImpl factory,
Expression name,
double minx,
double miny,
double maxx,
double maxy,
String srs)
|
Methods inherited from class GeometryFilterImpl |
addLeftGeometry, addRightGeometry, equals, evaluate, getLeftGeometry, getLeftGeometry, getRightGeometry, getRightGeometry, hashCode, toString, validate |
Methods inherited from interface BinarySpatialOperator |
getExpression1, getExpression2 |
BBOXImpl
public BBOXImpl(FilterFactory factory,
Expression e1,
Expression e2)
BBOXImpl
public BBOXImpl(FilterFactoryImpl factory,
Expression name,
double minx,
double miny,
double maxx,
double maxy,
String srs)
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyName
in interface BBOX
setPropertyName
public void setPropertyName(String propertyName)
getSRS
public String getSRS()
- Specified by:
getSRS
in interface BBOX
setSRS
public void setSRS(String srs)
- Deprecated. use the constructor or setExpression2
getMinX
public double getMinX()
- Specified by:
getMinX
in interface BBOX
setMinX
public void setMinX(double minx)
- Deprecated. use the constructor or setExpression2
getMinY
public double getMinY()
- Specified by:
getMinY
in interface BBOX
setMinY
public void setMinY(double miny)
- Deprecated. use the constructor or setExpression2
getMaxX
public double getMaxX()
- Specified by:
getMaxX
in interface BBOX
setMaxX
public void setMaxX(double maxx)
- Deprecated. use the constructor or setExpression2
getMaxY
public double getMaxY()
- Specified by:
getMaxY
in interface BBOX
setMaxY
public void setMaxY(double maxy)
- Deprecated. use the constructor or setExpression2
evaluate
public boolean evaluate(Object feature)
- Specified by:
evaluate
in interface Filter
basicEvaluate
protected 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
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
setExpression1
public void setExpression1(Expression expression)
- Overrides:
setExpression1
in class AbstractPreparedGeometryFilter
setExpression2
public void setExpression2(Expression expression)
- Overrides:
setExpression2
in class AbstractPreparedGeometryFilter
Copyright © 1996-2010 Geotools. All Rights Reserved.