Examples of BegunBy


Examples of org.opengis.filter.temporal.BegunBy

        "        </gml:TimeInstant> " +
        "   </fes:BegunBy> " +
        "</fes:Filter>";
        buildDocument(xml);
       
        BegunBy begunBy = (BegunBy) parse();
        assertNotNull(begunBy);
       
        assertTrue(begunBy.getExpression1() instanceof PropertyName);
        assertEquals("timeInstanceAttribute", ((PropertyName)begunBy.getExpression1()).getPropertyName());

        assertTrue(begunBy.getExpression2() instanceof Literal);
        assertTrue(begunBy.getExpression2().evaluate(null) instanceof Instant);
    }
View Full Code Here

Examples of org.opengis.filter.temporal.BegunBy

    @Test (expected=UnsupportedOperationException.class)
    public void testBegunByUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      BegunBy filter = ff.begunBy(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

Examples of org.opengis.filter.temporal.BegunBy

    public void testBegunBy() throws Exception {
        Period period = period("2009-01-15 13:10:12", "2009-06-28 15:12:41");
        FilterFactory ff = dataStore.getFilterFactory();
       
        BegunBy before = ff.begunBy(ff.literal(period), ff.property(aname("dt")));
        assertDatesMatch(before, "2009-01-15 13:10:12");
    }
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.