|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DistanceBufferOperator
public interface GeometryDistanceFilter
Defines geometry filters with a distance element.
These filters are defined in the filter spec by the DistanceBufferType, which contains an additioinal field for a distance. The two filters that use the distance buffer type are Beyond and DWithin.
From the spec: The spatial operators DWithin and Beyond test whether the value of a geometric property is within or beyond a specified distance of the specified literal geometric value. Distance values are expressed using the Distance element.
For now this code does not take into account the units of distance, we will assume that the filter units are the same as the geometry being filtered.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface MultiValuedFilter |
---|
MultiValuedFilter.MatchAction |
Field Summary |
---|
Fields inherited from interface Filter |
---|
ALL, NONE |
Fields inherited from interface Filter |
---|
EXCLUDE, INCLUDE |
Method Summary | |
---|---|
boolean |
contains(SimpleFeature feature)
Deprecated. use org.opengis.filter.Filter#evaluate(Feature) |
boolean |
equals(Object obj)
Deprecated. Returns true if the passed in object is the same as this filter. |
double |
getDistance()
Deprecated. use DistanceBufferOperator.getDistance() |
void |
setDistance(double distance)
Deprecated. Sets the distance allowed by this filter. |
Methods inherited from interface GeometryFilter |
---|
addLeftGeometry, addRightGeometry, getLeftGeometry, getRightGeometry |
Methods inherited from interface Filter |
---|
accept, and, evaluate, getFilterType, not, or |
Methods inherited from interface DistanceBufferOperator |
---|
getDistanceUnits |
Methods inherited from interface BinarySpatialOperator |
---|
getExpression1, getExpression2 |
Methods inherited from interface MultiValuedFilter |
---|
getMatchAction |
Methods inherited from interface Filter |
---|
accept, evaluate |
Method Detail |
---|
boolean equals(Object obj)
equals
in class Object
obj
- The filter to test equality against.
void setDistance(double distance) throws IllegalFilterException
distance
- the length beyond which this filter is valid or not.
IllegalFilterException
- for problems setting the distance.boolean contains(SimpleFeature feature)
org.opengis.filter.Filter#evaluate(Feature)
contains
in interface GeometryFilter
feature
- Specified feature to examine.
double getDistance()
DistanceBufferOperator.getDistance()
getDistance
in interface DistanceBufferOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |