Package org.geotools.filter

Examples of org.geotools.filter.IllegalFilterException


  public void setExpression(org.opengis.filter.expression.Expression e) {
    Expression exprAttribute = (Expression) e;
    if ((exprAttribute.getType() != ExpressionType.ATTRIBUTE_STRING) || permissiveConstruction) {
      this.attribute = exprAttribute;
    } else {
      throw new IllegalFilterException("Attempted to add something other than a string attribute "
          + "expression to a like filter.");
    }
  }
View Full Code Here


                                                                    .append("' in the FeatureType (")
                                                                    .append(schema.getTypeName())
                                                                    .append(")").toString());
                }

                throw new IllegalFilterException(new StringBuffer("Could not find '").append(attributes[j]
                        + "' in the FeatureType (").append(schema.getTypeName()).append(")")
                                                                                     .toString());
            }

            if (ad instanceof GeometryDescriptor) {
View Full Code Here

                if (schema instanceof SimpleFeatureType) {
                    List<Name> allNames = new ArrayList<Name>();
                    for (PropertyDescriptor pd : schema.getDescriptors()) {
                        allNames.add(pd.getName());
                    }
                    throw new IllegalFilterException("Could not find '" +
                            attribute + "' in the FeatureType (" + schema.getName() +
                           "), available attributes are: " + allNames);
                } else {
                    throw new IllegalFilterException("Could not find '" +
                        attribute + "' in the FeatureType (" + schema.getName() +
                        ")");
                }
            }
        }
View Full Code Here

        GeometryFactory gfac = new GeometryFactory();
        try {
            ring = gfac.createLinearRing(coords);
        } catch (TopologyException tex) {
            throw new IllegalFilterException(tex.toString());
        }

        Polygon polygon = gfac.createPolygon(ring, null);
        if (envelope instanceof ReferencedEnvelope) {
            ReferencedEnvelope refEnv = (ReferencedEnvelope) envelope;
View Full Code Here

        LinearRing ring = null;

        try {
            ring = gfac.createLinearRing(coords);
        } catch (TopologyException tex) {
            throw new IllegalFilterException(tex.toString());
        }

        Polygon polygon = gfac.createPolygon(ring, null);
        if (env instanceof ReferencedEnvelope) {
            ReferencedEnvelope refEnv = (ReferencedEnvelope) env;
View Full Code Here

        GeometryFactory gfac = new GeometryFactory();
        try {
            ring = gfac.createLinearRing(coords);
        } catch (TopologyException tex) {
            throw new IllegalFilterException(tex.toString());
        }

        Polygon polygon = gfac.createPolygon(ring, null);
        if (envelope instanceof ReferencedEnvelope3D) {
            ReferencedEnvelope3D refEnv = (ReferencedEnvelope3D) envelope;
View Full Code Here

                                                                    .append("' in the FeatureType (")
                                                                    .append(schema.getTypeName())
                                                                    .append(")").toString());
                }

                throw new IllegalFilterException(new StringBuffer("Could not find '").append(attributes[j]
                        + "' in the FeatureType (").append(schema.getTypeName()).append(")")
                                                                                     .toString());
            }

            if (ad instanceof GeometryDescriptor) {
View Full Code Here

TOP

Related Classes of org.geotools.filter.IllegalFilterException

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.