Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Subtract


    }

    public void testSubParse() throws Exception {
        FilterMockData.sub(document, document);

        Subtract sub = (Subtract) parse();

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


    }

    public void testSubParse() throws Exception {
        FilterMockData.sub(document, document);

        Subtract sub = (Subtract) parse();

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

    }

    public void testGetFeaturesWithArithmeticOpFilter() throws Exception {
        FilterFactory ff = dataStore.getFilterFactory();

        Subtract sub = ff.subtract(ff.property(aname("doubleProperty")), ff.literal(0.1));
        PropertyIsEqualTo filter = ff.equals(ff.property(aname("intProperty")), sub);

        //this test is very dependant on the specific database, some db's will round, some won't
        // so just assert that something is returned
        assertTrue(featureSource.getCount(new Query(null, filter)) > 0);
View Full Code Here

TOP

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

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.