Class BBOXImpl

    • Method Detail

      • setPropertyName

        public void setPropertyName​(String propertyName)
      • evaluateInternal

        public boolean evaluateInternal​(Geometry left,
                                        Geometry right)
        Description copied from class: GeometryFilterImpl
        Performs the calculation on the two geometries.
        Specified by:
        evaluateInternal in class GeometryFilterImpl
        Parameters:
        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)
        Returns:
        true if the filter evaluates to true for the two geometries
      • basicEvaluate

        protected boolean basicEvaluate​(Geometry left,
                                        Geometry right)
        Description copied from class: AbstractPreparedGeometryFilter
        Performs the calculation on the two geometries. This is used to calculate the cached value in the case that both geometries are Literals. But in practice it is useful to extract this functionality into its own method.
        Specified by:
        basicEvaluate in class AbstractPreparedGeometryFilter
        Parameters:
        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)
        Returns:
        true if the filter evaluates to true for the two geometries
      • accept

        public Object accept​(FilterVisitor visitor,
                             Object extraData)
        Description copied from interface: Filter
        Accepts a visitor.

        Implementations of all subinterfaces must have with a method whose content is the following:

        return visitor.visit(this, extraData);
        Specified by:
        accept in interface Filter
      • boundingPolygon

        public static Polygon boundingPolygon​(Envelope env)
        Generate bounding polygon for provided envelope.

        For a ReferenedEnvelope the CoordinateReferenceSystem wil be preserved.

        Parameters:
        env - The envelope to set as the bounds.
        Throws:
        IllegalFilterException - If the box can not be created.
        TODO:
        Currently sets the SRID to null, which can cause problems with JTS when it comes to doing spatial tests
      • getBounds

        public BoundingBox getBounds()
        Description copied from interface: BBOX
        Return Bounding Box object representing the bounds of the filter @Return Bounds of Filter
        Specified by:
        getBounds in interface BBOX