Package org.geotools.filter.text.cql2

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


        }
        ICompiler compiler;
        if(language == Language.ECQL){
            compiler  = new ECQLCompiler(predicate, ff);
        }else{
            compiler = new CQLCompiler(predicate, ff);
        }
        return compiler;
    }
View Full Code Here


            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

            PropertyIsNull filter = filterFactory.isNull(property);

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

            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

          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

      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

            identifier.append(part);

            return identifier.toString();

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

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

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

            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

        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

TOP

Related Classes of org.geotools.filter.text.cql2.CQLRelGeoOpTest

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.