public class BBOXImpl extends AbstractPreparedGeometryFilter implements BBOX
AbstractPreparedGeometryFilter.Literals
MultiValuedFilter.MatchAction
cacheValue, leftPreppedGeom, literals, rightPreppedGeom
matchAction
expression1, expression2
ALL, 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, NONE, NULL
Constructor and Description |
---|
BBOXImpl(Expression name,
double minx,
double miny,
double maxx,
double maxy,
String srs) |
BBOXImpl(Expression name,
double minx,
double miny,
double maxx,
double maxy,
String srs,
MultiValuedFilter.MatchAction matchAction) |
BBOXImpl(Expression e1,
Expression e2) |
BBOXImpl(Expression e1,
Expression e2,
MultiValuedFilter.MatchAction matchAction) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(FilterVisitor visitor,
Object extraData)
Accepts a visitor.
|
protected boolean |
basicEvaluate(Geometry left,
Geometry right)
Performs the calculation on the two geometries.
|
static Polygon |
boundingPolygon(Envelope env)
Generate bounding polygon for provided envelope.
|
boolean |
evaluateInternal(Geometry left,
Geometry right)
Performs the calculation on the two geometries.
|
BoundingBox |
getBounds()
Return Bounding Box object representing the bounds of the filter @Return Bounds of Filter
|
double |
getMaxX()
Assuming getExpression2() is a literal bounding box access the maximum value for the first
ordinate.
|
double |
getMaxY()
Assuming getExpression2() is a literal bounding box access the maximum value for the second
coordinate.
|
double |
getMinX()
Assuming getExpression2() is a literal bounding box access the minimum value for the first
coordinate.
|
double |
getMinY()
Assuming getExpression2() is a literal bounding box access the minimum value for the second
ordinate.
|
String |
getPropertyName()
Name of the geometric property that will be used in this spatial operator.
|
String |
getSRS()
Returns the spatial reference system in which the bounding box coordinates contained by this
object should be interpreted.
|
void |
setExpression1(Expression expression) |
void |
setExpression2(Expression expression) |
void |
setMaxX(double maxx)
Deprecated.
use the constructor or setExpression2
|
void |
setMaxY(double maxy)
Deprecated.
use the constructor or setExpression2
|
void |
setMinX(double minx)
Deprecated.
use the constructor or setExpression2
|
void |
setMinY(double miny)
Deprecated.
use the constructor or setExpression2
|
void |
setPropertyName(String propertyName) |
void |
setSRS(String srs)
Deprecated.
use the constructor or setExpression2
|
equals, evaluate, getGeometries, getMatchAction, hashCode, toString
comparable, eval, eval, getExpression1, getExpression2, isMatchingCase
isCompareFilter, isGeometryDistanceFilter, isGeometryFilter, isLogicFilter, isMathFilter, isSimpleFilter
accepts, eval, eval
getExpression1, getExpression2
getMatchAction
public BBOXImpl(Expression e1, Expression e2)
public BBOXImpl(Expression name, double minx, double miny, double maxx, double maxy, String srs)
public BBOXImpl(Expression e1, Expression e2, MultiValuedFilter.MatchAction matchAction)
public BBOXImpl(Expression name, double minx, double miny, double maxx, double maxy, String srs, MultiValuedFilter.MatchAction matchAction)
public String getPropertyName()
BBOX
This may be null if the default spatial property is to be used.
getPropertyName
in interface BBOX
public void setPropertyName(String propertyName)
public String getSRS()
BBOX
This string must take one of two forms: either
public void setSRS(String srs)
public double getMinX()
BBOX
public void setMinX(double minx)
public double getMinY()
BBOX
public void setMinY(double miny)
public double getMaxX()
BBOX
public void setMaxX(double maxx)
public double getMaxY()
BBOX
public void setMaxY(double maxy)
public boolean evaluateInternal(Geometry left, Geometry right)
GeometryFilterImpl
evaluateInternal
in class GeometryFilterImpl
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)protected boolean basicEvaluate(Geometry left, Geometry right)
AbstractPreparedGeometryFilter
basicEvaluate
in class AbstractPreparedGeometryFilter
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)public Object accept(FilterVisitor visitor, Object extraData)
Filter
Implementations of all subinterfaces must have with a method whose content is the following:
return visitor.visit(this, extraData);
public void setExpression1(Expression expression)
setExpression1
in class AbstractPreparedGeometryFilter
public void setExpression2(Expression expression)
setExpression2
in class AbstractPreparedGeometryFilter
public static Polygon boundingPolygon(Envelope env)
For a ReferenedEnvelope the CoordinateReferenceSystem wil be preserved.
env
- The envelope to set as the bounds.IllegalFilterException
- If the box can not be created.public BoundingBox getBounds()
BBOX
Copyright © 1996–2019 Geotools. All rights reserved.