Package org.opengis.filter

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


   
    @Test
    public void testDivideEncode() throws Exception {
        final FilterFactory2 filterFactory2 = CommonFactoryFinder.getFilterFactory2();
        final Filter javaFilter = filterFactory2.less(
          filterFactory2.divide(filterFactory2.property("population"), filterFactory2.literal(2)),
          filterFactory2.divide(filterFactory2.property("pop2000"), filterFactory2.literal(2))
        );
        Assert.assertEquals("population/2<pop2000/2", ECQL.toCQL(javaFilter).replace(" ", ""));
    }
   
View Full Code Here


    @Test
    public void testDivideEncode() throws Exception {
        final FilterFactory2 filterFactory2 = CommonFactoryFinder.getFilterFactory2();
        final Filter javaFilter = filterFactory2.less(
          filterFactory2.divide(filterFactory2.property("population"), filterFactory2.literal(2)),
          filterFactory2.divide(filterFactory2.property("pop2000"), filterFactory2.literal(2))
        );
        Assert.assertEquals("population/2<pop2000/2", ECQL.toCQL(javaFilter).replace(" ", ""));
    }
   
}
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.