Examples of tcontains()


Examples of org.opengis.filter.FilterFactory.tcontains()

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

Examples of org.opengis.filter.FilterFactory.tcontains()

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

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

Examples of org.opengis.filter.FilterFactory.tcontains()

   
    public void testTContains() throws Exception {
        Period period = period("2009-01-01 00:00:00", "2009-07-28 15:12:41");
        FilterFactory ff = dataStore.getFilterFactory();
       
        TContains during = ff.tcontains(ff.literal(period), ff.property(aname("dt")));
        assertDatesMatch(during, "2009-01-15 13:10:12", "2009-06-28 15:12:41");
    }
   
    public void testTEquals() throws Exception {
        FilterFactory ff = dataStore.getFilterFactory();
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.