Package org.opengis.filter

Examples of org.opengis.filter.FilterFactory.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


    public void testBegunBy() throws Exception {
        init();
        Period period = period("2004-20-06 03:44:56", "2014-22-06 03:44:56");
        FilterFactory ff = dataStore.getFilterFactory();
        Filter f = ff.begunBy(ff.literal(period), ff.property("installed_tdt"));
        SimpleFeatureCollection features = featureSource.getFeatures(f);
        assertEquals(1, features.size());
    }

    public void testEnds() throws Exception {
View Full Code Here

    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");
    }
   
    public void testEnds() throws Exception {
        Period period = period("2009-01-15 13:10:12", "2009-06-28 15:12:41");
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.