Examples of During


Examples of org.opengis.filter.temporal.During

   
    public void testDuring() throws Exception {
        Period period = period("2009-01-01 00:00:00", "2009-07-28 15:12:41");
        FilterFactory ff = dataStore.getFilterFactory();
       
        During during = ff.during(ff.property(aname("dt")), ff.literal(period));
        assertDatesMatch(during, "2009-01-15 13:10:12", "2009-06-28 15:12:41");
    }
View Full Code Here

Examples of org.opengis.filter.temporal.During

     *
     * @return Filter
     * @throws CQLException
     */
    private During buildDuring() throws CQLException {
        During filter = null;

        // determines if the node is period or date
        Result node = this.builder.peekResult();

        switch (node.getNodeType()) {
View Full Code Here

Examples of org.opengis.filter.temporal.During

        final String predicate = "2006-11-30T01:00:00Z DURING 2006-11-30T00:30:00Z/2006-11-30T01:30:00Z ";
        Filter resultFilter = CompilerUtil.parseFilter(this.language, predicate);

        Assert.assertTrue( resultFilter instanceof During);

        During lessFilter = (During) resultFilter;
       
        Literal expr1 = (Literal)lessFilter.getExpression1();
        Assert.assertTrue(expr1.getValue() instanceof Date);

        Literal expr2 = (Literal) lessFilter.getExpression2();
        Assert.assertTrue(expr2.getValue() instanceof Period);
       
        Assert.assertTrue(resultFilter.evaluate(null));
    }
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.