org.geotools.filter.spatial
Class BBOXImpl

java.lang.Object
  extended byorg.geotools.filter.FilterAbstract
      extended byorg.geotools.filter.AbstractFilter
          extended byorg.geotools.filter.BinaryComparisonAbstract
              extended byorg.geotools.filter.GeometryFilterImpl
                  extended byorg.geotools.filter.spatial.BBOXImpl
All Implemented Interfaces:
org.opengis.filter.spatial.BBOX, org.opengis.filter.BinaryComparisonOperator, org.opengis.filter.spatial.BinarySpatialOperator, Filter, org.opengis.filter.Filter, FilterType, GeometryFilter, org.opengis.filter.spatial.SpatialOperator

public class BBOXImpl
extends GeometryFilterImpl
implements org.opengis.filter.spatial.BBOX


Field Summary
 
Fields inherited from class org.geotools.filter.BinaryComparisonAbstract
expression1, expression2
 
Fields inherited from class org.geotools.filter.AbstractFilter
filterType, permissiveConstruction
 
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
BBOXImpl(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
 boolean evaluate(Feature feature)
          Determines whether or not a given feature is 'inside' this filter.
 double getMaxX()
           
 double getMaxY()
           
 double getMinX()
           
 double getMinY()
           
 java.lang.String getPropertyName()
           
 java.lang.String getSRS()
           
 void setMaxX(double maxx)
           
 void setMaxY(double miny)
           
 void setMinX(double minx)
           
 void setMinY(double miny)
           
 void setPropertyName(java.lang.String propertyName)
           
 void setSRS(java.lang.String srs)
           
 
Methods inherited from class org.geotools.filter.GeometryFilterImpl
addLeftGeometry, addRightGeometry, equals, getLeftGeometry, getLeftGeometry, getRightGeometry, getRightGeometry, hashCode, setExpression1, setExpression2, toString, validate
 
Methods inherited from class org.geotools.filter.BinaryComparisonAbstract
and, getExpression1, getExpression2, not, or
 
Methods inherited from class org.geotools.filter.AbstractFilter
accept, contains, evaluate, getFilterType, isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter
 
Methods inherited from class org.geotools.filter.FilterAbstract
accepts, comparable, eval, eval
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.filter.Filter
evaluate
 
Methods inherited from interface org.geotools.filter.GeometryFilter
contains
 
Methods inherited from interface org.geotools.filter.Filter
accept, and, getFilterType, not, or
 
Methods inherited from interface org.opengis.filter.spatial.BinarySpatialOperator
getExpression1, getExpression2
 

Constructor Detail

BBOXImpl

public BBOXImpl(FilterFactory factory,
                org.opengis.filter.expression.Expression e1,
                org.opengis.filter.expression.Expression e2)
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Specified by:
getPropertyName in interface org.opengis.filter.spatial.BBOX

setPropertyName

public void setPropertyName(java.lang.String propertyName)

getSRS

public java.lang.String getSRS()
Specified by:
getSRS in interface org.opengis.filter.spatial.BBOX

setSRS

public void setSRS(java.lang.String srs)

getMinX

public double getMinX()
Specified by:
getMinX in interface org.opengis.filter.spatial.BBOX

setMinX

public void setMinX(double minx)

getMinY

public double getMinY()
Specified by:
getMinY in interface org.opengis.filter.spatial.BBOX

setMinY

public void setMinY(double miny)

getMaxX

public double getMaxX()
Specified by:
getMaxX in interface org.opengis.filter.spatial.BBOX

setMaxX

public void setMaxX(double maxx)

getMaxY

public double getMaxY()
Specified by:
getMaxY in interface org.opengis.filter.spatial.BBOX

setMaxY

public void setMaxY(double miny)

evaluate

public boolean evaluate(Feature feature)
Description copied from class: GeometryFilterImpl
Determines whether or not a given feature is 'inside' this filter.

Specified by:
evaluate in interface Filter
Specified by:
evaluate in class GeometryFilterImpl
Parameters:
feature - Specified feature to examine.
Returns:
Flag confirming whether or not this feature is inside 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


Copyright © GeoTools. All Rights Reserved.