Package org.opengis.filter.expression

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


      ExpressionVisitor exprVisitor = new ExpressionToText();
     
        StringBuilder output = asStringBuilder(extraData);
        PropertyName propertyName = (PropertyName) filter.getExpression();
        propertyName.accept(exprVisitor, output);
        output.append(" BETWEEN ");
        filter.getLowerBoundary().accept(exprVisitor, output);
        output.append(" AND ");
        filter.getUpperBoundary().accept(exprVisitor, output);
       
View Full Code Here


        StringBuilder output = asStringBuilder(extraData);

        PropertyName propertyName = (PropertyName) filter.getExpression1();
      ExpressionToText visitor = new ExpressionToText();
    propertyName.accept(visitor, output);

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

   
      StringBuilder output = asStringBuilder(extraData);

        PropertyName propertyName = (PropertyName) during.getExpression1();
      ExpressionToText visitor = new ExpressionToText();
    propertyName.accept(visitor, output);

        output.append(" DURING ");
       
        Literal expr2 = (Literal) during.getExpression2();
View Full Code Here

   
    @Test
    public void testAttribute() throws Exception {
        PropertyName pn = ff.property("the_geom");
        CRSEvaluator evaluator = new CRSEvaluator(STATES_SCHEMA);
        CoordinateReferenceSystem crs = (CoordinateReferenceSystem) pn.accept(evaluator, null);
        assertEquals(WGS84, crs);
    }
   
    @Test
    public void testFunctionLiteral() throws Exception {
View Full Code Here

            // we have to reproject only if the property is geometric
            if (propertyCrs == null)
                return cloneFilter(filter, extraData);
           
            // "transformed" expressions
            Expression ex1 =  (Expression) name.accept(ReprojectingFilterVisitor.this, extraData);
            Expression ex2 = reproject(other, propertyCrs, false);
            if(ex2 == null)
                ex2 = (Expression) other.accept(ReprojectingFilterVisitor.this, extraData);
                       
            return cloneFilter(filter, extraData, ex1, ex2 );
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.