Examples of Begins


Examples of org.opengis.filter.temporal.Begins

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

        assertTrue(begins.getExpression2() instanceof Literal);
        assertTrue(begins.getExpression2().evaluate(null) instanceof Period);
    }
View Full Code Here

Examples of org.opengis.filter.temporal.Begins

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

Examples of org.opengis.filter.temporal.Begins

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