本文整理了Java中org.opengis.filter.FilterFactory2.greaterOrEqual()
方法的一些代码示例,展示了FilterFactory2.greaterOrEqual()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilterFactory2.greaterOrEqual()
方法的具体详情如下:
包路径:org.opengis.filter.FilterFactory2
类名称:FilterFactory2
方法名:greaterOrEqual
暂无
代码示例来源:origin: geotools/geotools
public Object visit(PropertyIsGreaterThanOrEqualTo filter, Object arg1) {
Expression[][] expressions = visitBinaryComparisonOperator(filter);
List combinedFilters = new ArrayList(expressions.length);
for (int i = 0; i < expressions.length; i++) {
Expression left = expressions[i][0];
Expression right = expressions[i][1];
Filter unrolled =
ff.greaterOrEqual(
left, right, filter.isMatchingCase(), filter.getMatchAction());
combinedFilters.add(unrolled);
}
Filter unrolled = combineOred(combinedFilters);
return unrolled;
}
代码示例来源:origin: geotools/geotools
/** Delegates to FilterFactory2 */
public static boolean greaterEqualThan(Object o1, Object o2) {
return getFilterFactory2().greaterOrEqual(ff.literal(o1), ff.literal(o2)).evaluate(null);
}
代码示例来源:origin: geotools/geotools
isIncludedInThreshold = ff.greater(lookupExp, threshholdExp);
} else {
isIncludedInThreshold = ff.greaterOrEqual(lookupExp, threshholdExp);
代码示例来源:origin: geotools/geotools
public static PropertyIsGreaterThanOrEqualTo propertyIsGreaterThanOrEqualTo() {
return f.greaterOrEqual(propertyName(), literal());
}
代码示例来源:origin: geotools/geotools
static PropertyIsGreaterThanOrEqualTo propertyIsGreaterThanOrEqualTo() {
return f.greaterOrEqual(propertyName(), literal());
}
代码示例来源:origin: geotools/geotools
return FILTER_FACT.greaterOrEqual(left, right);
代码示例来源:origin: geotools/geotools
public Object visit(PropertyIsGreaterThanOrEqualTo filter, Object extraData) {
Expression expr1 = visit(filter.getExpression1(), extraData);
Expression expr2 = visit(filter.getExpression2(), extraData);
return getFactory(extraData)
.greaterOrEqual(expr1, expr2, filter.isMatchingCase(), filter.getMatchAction());
}
代码示例来源:origin: geotools/geotools
return factory.greaterOrEqual(expr1, expr2);
代码示例来源:origin: geotools/geotools
return factory.greaterOrEqual(expr1, expr2);
代码示例来源:origin: geotools/geotools
ff.property(propertyName),
ff.literal(range.getMaxValue())),
ff.greaterOrEqual(
ff.property(propertyName),
ff.literal(range.getMinValue()))));
ff.greaterOrEqual(
ff.literal(maxValue), ff.property(propertyName));
Filter minCondition =
ff.and(
ff.lessOrEqual(ff.property(propertyName), ff.literal(value)),
ff.greaterOrEqual(
ff.property(additionalPropertyName),
ff.literal(value))));
代码示例来源:origin: geotools/geotools
FeatureUtilities.DEFAULT_FILTER_FACTORY.literal(
range.getMaxValue())),
FeatureUtilities.DEFAULT_FILTER_FACTORY.greaterOrEqual(
FeatureUtilities.DEFAULT_FILTER_FACTORY.property(
timeFilterAttribute),
FeatureUtilities.DEFAULT_FILTER_FACTORY.literal(
range.getMaxValue())),
FeatureUtilities.DEFAULT_FILTER_FACTORY.greaterOrEqual(
FeatureUtilities.DEFAULT_FILTER_FACTORY.property(
elevationFilterAttribute),
代码示例来源:origin: geotools/geotools
@Override
public Object visit(PropertyIsGreaterThanOrEqualTo filter, Object extraData) {
Class targetType = getTargetType(filter.getExpression1(), filter.getExpression2());
Expression expr1 = optimize(filter.getExpression1(), extraData, targetType);
Expression expr2 = optimize(filter.getExpression2(), extraData, targetType);
boolean matchCase = filter.isMatchingCase();
return getFactory(extraData)
.greaterOrEqual(expr1, expr2, matchCase, filter.getMatchAction());
}
代码示例来源:origin: geotools/geotools
/**
* Builds a filter that compares a and b: <code>a compare b</code>
*
* @param filterType
* @param a
* @param b
* @return
*/
org.opengis.filter.Filter compare(
Class filterType,
org.opengis.filter.expression.Expression a,
org.opengis.filter.expression.Expression b) {
if (filterType == PropertyIsLessThan.class) {
return fac.less(a, b);
} else if (filterType == PropertyIsLessThanOrEqualTo.class) {
return fac.lessOrEqual(a, b);
}
if (filterType == PropertyIsEqualTo.class) {
return fac.equals(a, b);
} else if (filterType == PropertyIsGreaterThanOrEqualTo.class) {
return fac.greaterOrEqual(a, b);
} else if (filterType == PropertyIsGreaterThan.class) {
return fac.greater(a, b);
} else {
throw new IllegalArgumentException("Uknown compare filter type " + filterType);
}
}
代码示例来源:origin: geotools/geotools
FF.greaterOrEqual(PERSONS, FF.literal(rangedClassifier.getMin(i)));
Filter less;
if (i < rangedClassifier.getSize() - 1) {
代码示例来源:origin: geotools/geotools
} else if (simplified instanceof PropertyIsLessThan) {
PropertyIsLessThan pl = (PropertyIsLessThan) simplified;
return ff.greaterOrEqual(
pl.getExpression1(), pl.getExpression2(), pl.isMatchingCase());
} else if (simplified instanceof PropertyIsLessThanOrEqualTo) {
代码示例来源:origin: geotools/geotools
assertFalse(filter.evaluate(null));
filter = fac.greaterOrEqual(e1, new LiteralExpressionImpl(35.2), false, MatchAction.ALL);
assertTrue(filter.evaluate(null));
filter = fac.greaterOrEqual(e1, new LiteralExpressionImpl(201.7), false, MatchAction.ALL);
assertFalse(filter.evaluate(null));
filter = fac.greaterOrEqual(new LiteralExpressionImpl(10000.5), e1, false, MatchAction.ALL);
assertTrue(filter.evaluate(null));
filter = fac.greaterOrEqual(new LiteralExpressionImpl(201.7), e1, false, MatchAction.ALL);
assertFalse(filter.evaluate(null));
代码示例来源:origin: geotools/geotools
assertFalse(filter.evaluate(null));
filter = fac.greaterOrEqual(e1, new LiteralExpressionImpl(10000.5), false, MatchAction.ONE);
assertTrue(filter.evaluate(null));
filter = fac.greaterOrEqual(e1, new LiteralExpressionImpl(201.7), false, MatchAction.ONE);
assertFalse(filter.evaluate(null));
filter = fac.greaterOrEqual(new LiteralExpressionImpl(35.2), e1, false, MatchAction.ONE);
assertTrue(filter.evaluate(null));
filter = fac.greaterOrEqual(new LiteralExpressionImpl(10001), e1, false, MatchAction.ONE);
assertFalse(filter.evaluate(null));
代码示例来源:origin: org.geotools/gt-main
public Object visit(PropertyIsGreaterThanOrEqualTo filter, Object extraData) {
Expression expr1= visit(filter.getExpression1(), extraData);
Expression expr2= visit(filter.getExpression2(), extraData);
return getFactory(extraData).greaterOrEqual(expr1, expr2);
}
代码示例来源:origin: geotools/geotools
assertFalse(filter.evaluate(null));
filter = fac.greaterOrEqual(e, new LiteralExpressionImpl(10000.5));
assertTrue(filter.evaluate(null));
filter = fac.greaterOrEqual(e, new LiteralExpressionImpl(10001));
assertFalse(filter.evaluate(null));
filter = fac.greaterOrEqual(new LiteralExpressionImpl(35.2), e);
assertTrue(filter.evaluate(null));
filter = fac.greaterOrEqual(new LiteralExpressionImpl(35), e);
assertFalse(filter.evaluate(null));
代码示例来源:origin: geotools/geotools
filter = fac.lessOrEqual(expr1, expr2, false);
assertEquals(filter.getMatchAction(), MatchAction.ANY);
filter = fac.greaterOrEqual(expr1, expr2, false);
assertEquals(filter.getMatchAction(), MatchAction.ANY);
filter = fac.notEqual(expr1, expr2, false);
filter = fac.lessOrEqual(expr1, expr2, false, MatchAction.ONE);
assertEquals(filter.getMatchAction(), MatchAction.ONE);
filter = fac.greaterOrEqual(expr1, expr2, false, MatchAction.ALL);
assertEquals(filter.getMatchAction(), MatchAction.ALL);
filter = fac.notEqual(expr1, expr2, false, MatchAction.ONE);
内容来源于网络,如有侵权,请联系作者删除!