Examples of CQLException


Examples of org.geotools.filter.text.cql2.CQLException

            PropertyIsLike f = filterFactory.like(expr, pattern.toString(),
                    WC_MULTI, WC_SINGLE, ESCAPE, matchCase);

            return f;
        } catch (IllegalFilterException ife) {
            throw new CQLException("Exception building LikeFilter: " + ife.getMessage(), this.cqlSource);
        }
    }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

            PropertyIsNull filter = filterFactory.isNull(property);

            return filter;
        } catch (CQLException e) {
            throw new CQLException("Exception building Null Predicate", this.cqlSource);
        }
    }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

            PropertyIsBetween filter = filterFactory.between(expr, inf, sup);

            return filter;
        } catch (IllegalFilterException ife) {
            throw new CQLException("Exception building CompareFilter: "+ ife.getMessage(), this.cqlSource);
        }
    }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

          String strDate = extractDate(cqlDate);
          String strTimeZone = extractTimeZone(cqlDate);
                return asLiteralTemporal(strDate, null, strTimeZone);
               
            } catch (java.text.ParseException e) {
                    throw new CQLException("Unsupported date time format: "
                                    + e.getMessage(), this.cqlSource);
            }
  }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

      String timeZoneOffset = extractTimeZone(cqlDateTime);

      return asLiteralTemporal(strDate, strTime, timeZoneOffset);
     
    } catch (java.text.ParseException e) {
      throw new CQLException("Unsupported date time format: "
          + e.getMessage(), this.cqlSource);
    }
   
  }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

            identifier.append(part);

            return identifier.toString();

        } catch (CQLException e) {
            throw new CQLException("Fail builing identifier: " + e.getMessage(), this.cqlSource);
        }
    }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

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

            return tolerance;
        } catch (NumberFormatException e) {
            throw new CQLException("Unsupported number format",this.cqlSource);
        }
    }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

            Literal literal = filterFactory.literal(g);

            return literal;
        } catch (com.vividsolutions.jts.io.ParseException e) {
            throw new CQLException(e.getMessage(), geometry, e, this.cqlSource);
        } catch (Exception e) {
            throw new CQLException("Error building WKT Geometry: " + e.getMessage(),geometry, e, this.cqlSource);
        }
    }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

        Function function = null;
        try{
            function = filterFactory.function(functionName, args);

            if (function == null) {
                throw new CQLException("Function not found.", this.cqlSource);
            }
         
        } catch (Exception ex){
            throw new CQLException("Function not found.", this.cqlSource);
        }

        return function;
    }
View Full Code Here

Examples of org.geotools.filter.text.cql2.CQLException

        try {
            item = stack.pop();

            return (org.opengis.filter.expression.Expression) item.getBuilt();
        } catch (ClassCastException cce) {
            throw new CQLException("Expecting Expression",
                item.getToken(), cce, this.cqlSource);
        } catch (EmptyStackException ese) {
            throw new CQLException("No items on stack");
        }
    }
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.