Examples of Meets


Examples of org.opengis.filter.temporal.Meets

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

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

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

Examples of org.opengis.filter.temporal.Meets

    @Test (expected=UnsupportedOperationException.class)
    public void testMeetsUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      Meets filter = ff.meets(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
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.