Examples of TContains


Examples of org.opengis.filter.temporal.TContains

            "    </gml:TimePeriod> "
            "   </fes:TContains> " +
            "</fes:Filter>";
        buildDocument(xml);

        TContains contains = (TContains) parse();
        assertNotNull(contains);
       
        assertTrue(contains.getExpression1() instanceof PropertyName);
        assertEquals("timeInstanceAttribute", ((PropertyName)contains.getExpression1()).getPropertyName());

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

Examples of org.opengis.filter.temporal.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.temporal.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");
    }
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.