Package org.geotools.filter

Examples of org.geotools.filter.LiteralExpressionImpl


    return appearance.clone();
  }

  private String getExpressionValue(Expression exp, Feature feature) {
    if (exp.getClass().isAssignableFrom(LiteralExpressionImpl.class)) {
      LiteralExpressionImpl v = (LiteralExpressionImpl) exp;
      byte[] utf8Bytes = null;
      String result = "";
      try {
        utf8Bytes = v.toString().getBytes("UTF8");
        result = new String(utf8Bytes, "UTF8");
      } catch (UnsupportedEncodingException e) {
        return "";
      }
      return result;

    }
    if (exp.getClass().isAssignableFrom(AttributeExpressionImpl.class)) {
      AttributeExpressionImpl v = (AttributeExpressionImpl) exp;
      String property = v.getPropertyName();
      Property p = feature.getProperty(property);
      if (p == null) {
        return "";
      }
      Object o = p.getValue();
View Full Code Here

TOP

Related Classes of org.geotools.filter.LiteralExpressionImpl

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.