Examples of SchemaNotFoundException


Examples of org.geotools.data.SchemaNotFoundException

     *      org.geotools.data.Query)
     */
    protected ReferencedEnvelope getBounds(Query query) throws SchemaNotFoundException{
        String featureTypeName = query.getTypeName();
        if (!featureType.getTypeName().equals(featureTypeName)) {
            throw new SchemaNotFoundException(featureTypeName);
        }

        return getBoundsInternal(query);
    }
View Full Code Here

Examples of org.geotools.data.SchemaNotFoundException

     */
    protected int getCount(Query query)
        throws IOException {
        String featureTypeName = query.getTypeName();
        if (!featureType.getTypeName().equals(featureTypeName)) {
            throw new SchemaNotFoundException(featureTypeName);
        }
        int count = 0;
        FeatureIterator<SimpleFeature> iterator = collection.features();
        try {
            Filter filter = query.getFilter();
View Full Code Here

Examples of org.geotools.data.SchemaNotFoundException

    public SimpleFeatureType getSchema(String typeName) throws IOException {
        synchronized (memory) {
            if (schema.containsKey(typeName)) {
                return schema.get(typeName);
            }
                throw new SchemaNotFoundException(typeName);
        }
    }
View Full Code Here

Examples of org.geotools.data.SchemaNotFoundException

            final QName featureDescriptorName;
            try {
                featureDescriptorName = wfs.getFeatureTypeName(prefixedTypeName);
            } catch (IllegalArgumentException e) {
                throw new SchemaNotFoundException(prefixedTypeName);
            }

            final SimpleFeatureType featureType;
            CoordinateReferenceSystem crs = getFeatureTypeCRS(prefixedTypeName);
            featureType = wfs.issueDescribeFeatureTypeGET(prefixedTypeName, crs);
View Full Code Here

Examples of org.geotools.data.SchemaNotFoundException

                    && localPart.equals(qname.getLocalPart())) {
                String prefixedName = qname.getPrefix() + ":" + localPart;
                return getSchema(prefixedName);
            }
        }
        throw new SchemaNotFoundException(name.getURI());
    }
View Full Code Here

Examples of org.geotools.data.SchemaNotFoundException

                    && localPart.equals(qname.getLocalPart())) {
                String prefixedName = qname.getPrefix() + ":" + localPart;
                return getFeatureSource(prefixedName);
            }
        }
        throw new SchemaNotFoundException(typeName.getURI());
    }
View Full Code Here

Examples of org.kitesdk.data.SchemaNotFoundException

    if (greatestVersionedSchema == null) {
      String msg = "No schema versions for " + managedSchema.getTable() + ", "
          + managedSchema.getName();
      LOG.error(msg);
      throw new SchemaNotFoundException(msg);
    }

    return greatestVersionedSchema;
  }
View Full Code Here

Examples of org.kitesdk.data.SchemaNotFoundException

      return schemaParser.parseEntitySchema(schema);
    } else {
      String msg = "Could not find managed schema for " + tableName + ", "
          + entityName + ", and version " + Integer.toString(version);
      LOG.error(msg);
      throw new SchemaNotFoundException(msg);
    }
  }
View Full Code Here

Examples of org.kitesdk.data.SchemaNotFoundException

      }
    }
    String msg = "Could not find managed version for " + tableName + ", " +
        entityName + " that matches " + schema;
    LOG.error(msg);
    throw new SchemaNotFoundException(msg);
  }
View Full Code Here

Examples of org.kitesdk.data.SchemaNotFoundException

      refreshManagedSchemaCache(tableName, entityName);
      managedSchema = getManagedSchemaFromSchemaMap(tableName, entityName);
      if (managedSchema == null) {
        String msg = "Could not find managed schemas for " + tableName + ", "
            + entityName;
        throw new SchemaNotFoundException(msg);
      }
    }
    return managedSchema;
  }
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.