Package com.geodesk.feature
Interface Filter
public interface Filter
An interface for classes that select the features to be returned by a query.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Checks whether the given feature should be included in the query results.default boolean
acceptGeometry
(Geometry geom) default com.geodesk.geom.Bounds
bounds()
The maximum bounding box in which acceptable candidates can be found.
-
Method Details
-
accept
Checks whether the given feature should be included in the query results.- Parameters:
feature
- the feature to check- Returns:
- `true` if this feature should be included in the results
-
acceptGeometry
-
bounds
default com.geodesk.geom.Bounds bounds()The maximum bounding box in which acceptable candidates can be found.- Returns:
- a bounding box, or`null` if the filter does not use the spatial index
-