Examples of greater()


Examples of org.opengis.filter.FilterFactory2.greater()

        fids.add(new FeatureIdImpl("comuni11.2671"));
       
        FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
        PropertyName bboxProperty = ff.property(sf.getDefaultGeometryProperty().getName());
        Query query = new Query(typeName, ff.and(
                ff.greater(ff.property("cod_reg"), ff.literal(0)),
                ff.and(
                        ff.bbox(bboxProperty, sf.getBounds()),
                        ff.id(fids))));       
        iterate(source.getFeatures(query), 1, true);
       
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

    // The usual array of property comparisons is supported
    // the comparison is based on the kind of data so both
    // numeric, date and string comparisons are supported.
    filter = ff.less(ff.property("depth"), ff.literal(300));
    filter = ff.lessOrEqual(ff.property("risk"), ff.literal(3.7));
    filter = ff.greater(ff.property("name"), ff.literal("Smith"));
    filter = ff.greaterOrEqual(ff.property("schedule"), ff.literal(new Date()));

    // PropertyIsBetween is a short inclusive test between two values
    filter = ff.between(ff.property("age"), ff.literal(20), ff.literal("29"));
    filter = ff.between(ff.property("group"), ff.literal("A"), ff.literal("D"));
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

    // with like filters (allowing you to select content that does not
    // match the provided pattern)
    filter = ff.not(ff.like(ff.property("code"), "230%"));

    // you can also combine filters to narrow the results returned
    filter = ff.and(ff.greater(ff.property("rainfall"), ff.literal(70)),
            ff.equal(ff.property("land_use"), ff.literal("urban"), false));

    filter = ff.or(ff.equal(ff.property("code"), ff.literal("approved")),
            ff.greater(ff.property("funding"), ff.literal(23000)));
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

    // you can also combine filters to narrow the results returned
    filter = ff.and(ff.greater(ff.property("rainfall"), ff.literal(70)),
            ff.equal(ff.property("land_use"), ff.literal("urban"), false));

    filter = ff.or(ff.equal(ff.property("code"), ff.literal("approved")),
            ff.greater(ff.property("funding"), ff.literal(23000)));

    // logical end
}

void temporal() throws Exception {
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

    // You can override this default with matchCase = false
    filter = ff.equal(ff.property("state"), ff.literal("new south wales"),
            false);

    // All property comparisons allow you to control case sensitivity
    Filter welcome = ff.greater(ff.property("zone"), ff.literal("danger"),
            false);
    // caseSensitive end
}

public void matchAction() {
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

public void matchAction() {
    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchAction start
    filter = ff.greater(ff.property("child/age"), ff.literal(12), true,
            MatchAction.ALL);
    // matchAction end
}

public void matchActionAny() {
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchActionAny start
    List<Integer> ages = Arrays.asList(new Integer[] { 7, 8, 10, 15 });

    filter = ff.greater(ff.literal(ages), ff.literal(12), false,
            MatchAction.ANY);
    System.out.println("Any: " + filter.evaluate(null)); // prints Any: true
    // matchActionAny end
}
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchActionAll start
    List<Integer> ages = Arrays.asList(new Integer[] { 7, 8, 10, 15 });

    filter = ff.greater(ff.literal(ages), ff.literal(12), false,
            MatchAction.ALL);
    System.out.println("All: " + filter.evaluate(null)); // prints All: false
    // matchActionAll end
}
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

    FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    Filter filter;
    // matchActionOne start
    List<Integer> ages = Arrays.asList(new Integer[] { 7, 8, 10, 15 });

    filter = ff.greater(ff.literal(ages), ff.literal(12), false,
            MatchAction.ONE);
    System.out.println("One: " + filter.evaluate(null)); // prints One: true
    // matchActionOne end
}
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.greater()

            Expression threshholdExp = splits.get(i);
            Expression rangedExp = splits.get(i + 1);
           
            Filter isIncludedInThreshold;
            if (PRECEDING.equals(belongsTo)) {
                isIncludedInThreshold = ff.greater(lookupExp, threshholdExp);
            } else {
                isIncludedInThreshold = ff.greaterOrEqual(lookupExp, threshholdExp);
            }
            if (isIncludedInThreshold.evaluate(object)) {
                currentExp = rangedExp;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.