Package org.opengis.filter.temporal

Examples of org.opengis.filter.temporal.Ends


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

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

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


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

   
    public void testEnds() throws Exception {
        Period period = period("2009-01-15 13:10:12", "2009-06-28 15:12:41");
        FilterFactory ff = dataStore.getFilterFactory();
       
        Ends before = ff.ends(ff.property(aname("dt")), ff.literal(period));
        assertDatesMatch(before, "2009-06-28 15:12:41");
    }
View Full Code Here

   
    public void testEndedBy() throws Exception {
        Period period = period("2009-01-15 13:10:12", "2009-06-28 15:12:41");
        FilterFactory ff = dataStore.getFilterFactory();
       
        Ends before = ff.ends(ff.property(aname("dt")), ff.literal(period));
        assertDatesMatch(before, "2009-06-28 15:12:41");
    }
View Full Code Here

TOP

Related Classes of org.opengis.filter.temporal.Ends

Copyright © 2018 www.massapicom. 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.