Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Function.evaluate()


            assertEquals("round of (1.0):", (int) Math.round(1.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_m1);
            assertEquals("round of (-1.0):", (int) Math.round(-1.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_2);
            assertEquals("round of (2.0):", (int) Math.round(2.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
View Full Code Here


            assertEquals("round of (-1.0):", (int) Math.round(-1.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_2);
            assertEquals("round of (2.0):", (int) Math.round(2.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_m2);
            assertEquals("round of (-2.0):", (int) Math.round(-2.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
View Full Code Here

            assertEquals("round of (2.0):", (int) Math.round(2.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_m2);
            assertEquals("round of (-2.0):", (int) Math.round(-2.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_pi);
            assertEquals("round of (3.141592653589793):", (int) Math
                    .round(3.141592653589793), ((Integer) roundFunction
                    .evaluate(null)).intValue(), 0.00001);
View Full Code Here

            assertEquals("round of (-2.0):", (int) Math.round(-2.0),
                    ((Integer) roundFunction.evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_pi);
            assertEquals("round of (3.141592653589793):", (int) Math
                    .round(3.141592653589793), ((Integer) roundFunction
                    .evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_05pi);
            assertEquals("round of (1.5707963267948966):", (int) Math
                    .round(1.5707963267948966), ((Integer) roundFunction
View Full Code Here

                    .round(3.141592653589793), ((Integer) roundFunction
                    .evaluate(null)).intValue(), 0.00001);
           
            roundFunction = ff.function("round", literal_05pi);
            assertEquals("round of (1.5707963267948966):", (int) Math
                    .round(1.5707963267948966), ((Integer) roundFunction
                    .evaluate(null)).intValue(), 0.00001);
        } catch (FactoryRegistryException e) {
            e.printStackTrace();
            fail("Unexpected exception: " + e.getMessage());
        }
View Full Code Here

            assertEquals("Name is, ", "round_2", round_2.getName());
            assertEquals("Number of arguments, ", 1, round_2.getFunctionName().getArgumentCount());

            Function round_2Function = ff.function("round_2", literal_1);
            assertEquals("round_2 of (1.0):", (long) Math.round(1.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_m1);
            assertEquals("round_2 of (-1.0):", (long) Math.round(-1.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
View Full Code Here

            assertEquals("round_2 of (1.0):", (long) Math.round(1.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_m1);
            assertEquals("round_2 of (-1.0):", (long) Math.round(-1.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_2);
            assertEquals("round_2 of (2.0):", (long) Math.round(2.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
View Full Code Here

            assertEquals("round_2 of (-1.0):", (long) Math.round(-1.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_2);
            assertEquals("round_2 of (2.0):", (long) Math.round(2.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_m2);
            assertEquals("round_2 of (-2.0):", (long) Math.round(-2.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
View Full Code Here

            assertEquals("round_2 of (2.0):", (long) Math.round(2.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_m2);
            assertEquals("round_2 of (-2.0):", (long) Math.round(-2.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_pi);
            assertEquals("round_2 of (3.141592653589793):", (long) Math
                    .round(3.141592653589793), ((Long) round_2Function
                    .evaluate(null)).longValue(), 0.00001);
View Full Code Here

            assertEquals("round_2 of (-2.0):", (long) Math.round(-2.0),
                    ((Long) round_2Function.evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_pi);
            assertEquals("round_2 of (3.141592653589793):", (long) Math
                    .round(3.141592653589793), ((Long) round_2Function
                    .evaluate(null)).longValue(), 0.00001);
           
            round_2Function = ff.function("round_2", literal_05pi);
            assertEquals("round_2 of (1.5707963267948966):", (long) Math
                    .round(1.5707963267948966), ((Long) round_2Function
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.