Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Literal


            if (!"".equals(strTime)) {
                    date = formatter.parse(strDate + " " + strTime);
            } else {
                    date = formatter.parse(strDate);
            }
            Literal literalDate = filterFactory.literal(date);

            return literalDate;
  }
View Full Code Here


        return beyond;
    }
   
    public Contains contains(String propertyName, Geometry geometry) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return contains( name, geom );
    }
View Full Code Here

        return property;
    }
   

    public Literal buildDistanceUnit(IToken token) throws CQLException {
        Literal unit = null;

        unit = filterFactory.literal(token.toString());

        return unit;
    }
View Full Code Here

        return unit;
    }
   
    public  Literal buildTolerance() throws CQLException {
        Literal tolerance = null;

        try {
            tolerance = this.resultStack.popLiteral();

            return tolerance;
View Full Code Here

        return new ContainsImpl(geometry1, geometry2, matchAction );
    }
   
    public Contains contains(String propertyName, Geometry geometry, MatchAction matchAction) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return contains( name, geom, matchAction );
    }
View Full Code Here

        }
    }

    public BinarySpatialOperator buildSpatialEqualFilter() throws CQLException {
        Literal geom = this.resultStack.popLiteral();

        Expression property = this.resultStack.popExpression();

        FilterFactory2 ff = (FilterFactory2) filterFactory; // TODO this cast must be removed. It depends of Geometry implementation
View Full Code Here

        FilterFactory2 ff = (FilterFactory2) filterFactory; // TODO this cast must be removed. It depends of Geometry implementation

        return ff.equal(property, geom);
    }
    public BinarySpatialOperator buildSpatialDisjointFilter() throws CQLException {
        Literal geom = this.resultStack.popLiteral();

        Expression property = this.resultStack.popExpression();

        FilterFactory2 ff = (FilterFactory2) filterFactory; // TODO this cast must be removed. It depends of Geometry implementation
View Full Code Here

        return contains( name, geom, matchAction );
    }

    public Crosses crosses(String propertyName, Geometry geometry) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return crosses( name, geom );
    }
View Full Code Here

        return  ff.disjoint(property, geom);
    }

    public BinarySpatialOperator buildSpatialIntersectsFilter() throws CQLException {
       
        Literal geom = this.resultStack.popLiteral();

        Expression property = this.resultStack.popExpression();

        FilterFactory2 ff = (FilterFactory2) filterFactory; // TODO this cast must be removed. It depends of Geometry implementation
View Full Code Here

        return crosses( name, geom );
    }
   
    public Crosses crosses(String propertyName, Geometry geometry, MatchAction matchAction) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return crosses( name, geom, matchAction );
    }
View Full Code Here

TOP

Related Classes of org.opengis.filter.expression.Literal

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.