public FixedDWithinImpl( final Expression e1, final Expression e2, final String units, final double distance, final MatchAction matchAction) throws IllegalFilterException, TransformException { super( new LiteralExpressionImpl( GeometryUtils.buffer( getCRS(e1, e2), e1.evaluate(null, org.locationtech.jts.geom.Geometry.class), units, distance).getLeft()), e2, matchAction); this.units = units; this.distance = distance; }
public FixedDWithinImpl( final Expression e1, final Expression e2, final String units, final double distance) throws IllegalFilterException, TransformException { super( new LiteralExpressionImpl( GeometryUtils.buffer( getCRS(e1, e2), e1 instanceof PropertyName ? e2.evaluate(null, org.locationtech.jts.geom.Geometry.class) : e1.evaluate(null, org.locationtech.jts.geom.Geometry.class), units, distance).getLeft()), e1 instanceof PropertyName ? e1 : e2); this.units = units; this.distance = distance; }
try { geometryAndDegrees = GeometryUtils.buffer(crs, geom, filter.getDistanceUnits(), filter.getDistance()); } catch (final TransformException e) { LOGGER.error("Cannot transform geometry to CRS", e);
GeometryUtils.buffer( GeometryUtils.getDefaultCRS(), filter.getExpression2().evaluate(extraData, Geometry.class), && (filter.getExpression1() instanceof Literal)) { final Pair<Geometry, Double> geometryAndDegrees = GeometryUtils.buffer( GeometryUtils.getDefaultCRS(), filter.getExpression1().evaluate(extraData, Geometry.class),
DateUtilities.parseISO("2005-05-17T19:32:56Z"), DateUtilities.parseISO("2005-05-17T22:32:56Z")).spatialConstraints( GeometryUtils.buffer( GeometryUtils.getDefaultCRS(), GeometryUtils.GEOMETRY_FACTORY.createPoint( DateUtilities.parseISO("2005-05-19T19:32:56Z"), DateUtilities.parseISO("2005-05-19T22:32:56Z")).spatialConstraints( GeometryUtils.buffer( GeometryUtils.getDefaultCRS(), GeometryUtils.GEOMETRY_FACTORY.createPoint(