Interface Filter


public interface Filter
An interface for classes that select the features to be returned by a query.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    accept(Feature feature)
    Checks whether the given feature should be included in the query results.
    default boolean
     
    default com.geodesk.geom.Bounds
    The maximum bounding box in which acceptable candidates can be found.
  • Method Details

    • accept

      default boolean accept(Feature feature)
      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

      default boolean acceptGeometry(Geometry geom)
    • 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