Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Divide


                //generate the expression
                Expression expr = null;
                Expression attr = ff.property(selectedAttributeType.getName());
               
                if (normalize != null) {
                    Divide divide = ff.divide(attr, ff.property(normalize.getName()));
                    expr = divide;
                } else {
                    expr = attr;
                }
               
View Full Code Here


    }

    public void testDivParse() throws Exception {
        FilterMockData.div(document, document);

        Divide div = (Divide) parse();

        assertNotNull(div.getExpression1());
        assertNotNull(div.getExpression2());
    }
View Full Code Here

    }

    public void testDivParse() throws Exception {
        FilterMockData.div(document, document);

        Divide div = (Divide) parse();

        assertNotNull(div.getExpression1());
        assertNotNull(div.getExpression2());
    }
View Full Code Here

        store.createSchema(ft);
        store.addFeatures(testFeatures);
        SimpleFeatureCollection thisFC = store.getFeatureSource("nullnan").getFeatures();

        // create the expression
        Divide divide = ff.divide(ff.property("foo"), ff.property("bar"));
        JenksNaturalBreaksFunction qf = (JenksNaturalBreaksFunction) ff.function("Jenks", divide, ff.literal(3));

        RangedClassifier range = (RangedClassifier) qf.evaluate(thisFC);
        assertEquals(3 , range.getSize()); // 2 or 3?
        assertEquals("0..0", range.getTitle(0));
View Full Code Here

      store.createSchema(ft);
      store.addFeatures(testFeatures);
      SimpleFeatureCollection thisFC = store.getFeatureSource("nullnan").getFeatures();

      //create the expression
        Divide divide = ff.divide(ff.property("foo"), ff.property("bar"));
        QuantileFunction qf = (QuantileFunction) ff.function("Quantile", divide, ff.literal(3));
       
        RangedClassifier range = (RangedClassifier) qf.evaluate(thisFC);
        assertEquals(2, range.getSize()); //2 or 3?
        assertEquals("0..0", range.getTitle(0));
View Full Code Here

TOP

Related Classes of org.opengis.filter.expression.Divide

Copyright © 2018 www.massapicom. 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.