Package org.opengis.filter.temporal

Examples of org.opengis.filter.temporal.MetBy


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

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

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


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

TOP

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

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.