Package org.opengis.filter.expression

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


    void handleColor(Expression color) {
        if(color == null)
            return;
        if(color instanceof Literal) {
            Literal lc = (Literal) color;
            String rgbColor = (String) lc.evaluate(null, String.class);
            colors.add(Color.decode(rgbColor));
        } else {
            unknownColors = true;
        }
    }
View Full Code Here


    // we cannot desume a bbox from this filter
    if (geometry == null) {
      return infinity();
    }

    Geometry geom = geometry.evaluate(
        null,
        Geometry.class);
    if (geom == null) {
      return infinity();
    }
View Full Code Here

    else {
      return false;
    }
    if (filter.getExpression2() instanceof Literal) {
      Literal literal = (Literal) filter.getExpression2();
      Boolean value = literal.evaluate(
          null,
          Boolean.class);
      if (value == null || value == false) {
        return false;
      }
View Full Code Here

    void handleOpacity(Expression opacity) {
        if(opacity == null)
            return;
        if(opacity instanceof Literal) {
            Literal lo = (Literal) opacity;
            double value = ((Double) lo.evaluate(null, Double.class)).doubleValue();
            translucentSymbolizers = translucentSymbolizers || value != 1;
        } else {
            // we cannot know, so we assume some will be non opaque
            translucentSymbolizers = true;
        }
View Full Code Here

    void handleColor(Expression color) {
        if(color == null)
            return;
        if(color instanceof Literal) {
            Literal lc = (Literal) color;
            String rgbColor = (String) lc.evaluate(null, String.class);
            colors.add(Color.decode(rgbColor));
        } else {
            unknownColors = true;
        }
    }
View Full Code Here

            }       
               
            final String propertyTypesParam = propertyTypesParam(expression1);
   
            //respect match case
            String expectedValue = expression2.evaluate(null, String.class);
            if (!matchingCase) {
                expectedValue = expectedValue.toUpperCase();
            }
            String valueParam = newParam("value", expectedValue);
                       
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.