@Test public void evaluate_envelopeOverlapsBBOX() throws Exception { FastBBOX fastBBOX = new FastBBOX( filterFactory.property("geometry"), new Envelope(0.8, 2, 0.8, 2), filterFactory); assertTrue(fastBBOX.evaluate(circle)); }
public boolean evaluate(Object feature) { if (feature == null) return false; Geometry other = (Geometry) property.evaluate(feature); if (other == null) return false; return other.getEnvelopeInternal().intersects(envelope); }
FastBBOX implements BBOX, BinarySpatialOperator, BinaryComparisonOperator { public boolean evaluate(Object feature) { if (feature == null) return false; Geometry other = (Geometry) property.evaluate(feature); if (other == null) return false; return other.getEnvelopeInternal().intersects(envelope); } }
FastBBOX implements BBOX, BinarySpatialOperator, BinaryComparisonOperator { public boolean evaluate(Object feature) { if (feature == null) return false; Geometry other = (Geometry) property.evaluate(feature); if (other == null) return false; return other.getEnvelopeInternal().intersects(envelope); } FastBBOX(PropertyName propertyName, Envelope env, FilterFactory factory); }
FastBBOX implements BBOX, BinarySpatialOperator, BinaryComparisonOperator { public boolean evaluate(Object feature) { if (feature == null) return false; Geometry other = (Geometry) property.evaluate(feature); if (other == null) return false; return other.getEnvelopeInternal().intersects(envelope); } FastBBOX(PropertyName propertyName, Envelope env, FilterFactory factory); PropertyName getProperty(); Envelope getEnvelope(); BoundingBox getBounds(); Expression getExpression1(); Expression getExpression2(); Object accept(FilterVisitor visitor, Object context); boolean evaluate(Object feature); boolean isMatchingCase(); MatchAction getMatchAction(); @Override String toString(); }
FastBBOX implements BBOX, BinarySpatialOperator, BinaryComparisonOperator { public boolean evaluate(Object feature) { if (feature == null) return false; Geometry other = (Geometry) property.evaluate(feature); if (other == null) return false; return other.getEnvelopeInternal().intersects(envelope); } FastBBOX(PropertyName propertyName, Envelope env, FilterFactory factory); PropertyName getProperty(); Envelope getEnvelope(); BoundingBox getBounds(); Expression getExpression1(); Expression getExpression2(); Object accept(FilterVisitor visitor, Object context); boolean evaluate(Object feature); boolean isMatchingCase(); MatchAction getMatchAction(); @Override String toString();  }