Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Literal.accept()


    propertyName.accept(visitor, output);

        output.append(" ").append(temporalOperator).append(" ");
       
        Literal expr2 = (Literal) filter.getExpression2();
        expr2.accept(visitor, output);

        return output;
  }

  public static Object buildDuring(During during, Object extraData) {
View Full Code Here


        output.append(" DURING ");
       
        Literal expr2 = (Literal) during.getExpression2();

        expr2.accept(visitor, output);

        return output;
  }
}
View Full Code Here

    public void testLiteralNull() throws Exception {
        Geometry g = wkt.read("POINT(0 0)");
        Literal literal = ff.literal(g);
       
        CRSEvaluator evaluator = new CRSEvaluator(null);
        CoordinateReferenceSystem crs = (CoordinateReferenceSystem) literal.accept(evaluator, null);
        assertNull(crs);
    }

    @Test
    public void testLiteralSRID() throws Exception {
View Full Code Here

        Geometry g = wkt.read("POINT(0 0)");
        g.setSRID(4326);
        Literal literal = ff.literal(g);
       
        CRSEvaluator evaluator = new CRSEvaluator(null);
        CoordinateReferenceSystem crs = (CoordinateReferenceSystem) literal.accept(evaluator, null);
        assertEquals(CRS.decode("EPSG:4326"), crs);
    }
   
    @Test
    public void testLiteralCRS() throws Exception {
View Full Code Here

        Geometry g = wkt.read("POINT(0 0)");
        g.setUserData(WGS84);
        Literal literal = ff.literal(g);
       
        CRSEvaluator evaluator = new CRSEvaluator(null);
        CoordinateReferenceSystem crs = (CoordinateReferenceSystem) literal.accept(evaluator, null);
        assertSame(WGS84, crs);
    }
   
    @Test
    public void testAttribute() throws Exception {
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.