Examples of TEquals


Examples of org.opengis.filter.temporal.TEquals

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

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

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

Examples of org.opengis.filter.temporal.TEquals

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

Examples of org.opengis.filter.temporal.TEquals

    }
   
    public void testTEquals() throws Exception {
        FilterFactory ff = dataStore.getFilterFactory();
       
        TEquals equals = ff.tequals(ff.literal("2009-01-15 13:10:12"), ff.property(aname("dt")));
        assertDatesMatch(equals, "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.