Package org.geotools.data

Examples of org.geotools.data.DataSourceException


            SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
            b.init(original);
            b.setName(transfomedName);
            return b.buildFeatureType();
        } catch (Exception e) {
            throw new DataSourceException("Could not build the renamed feature type.", e);
        }
    }
View Full Code Here


            FeatureTypeStyle[] fts = style.getFeatureTypeStyles();
            processStylersRaster(features, fts, layer, order);
            LOGGER.fine("encoded " + featureType.getTypeName().toString());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (IllegalAttributeException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

            FeatureTypeStyle[] fts = style.getFeatureTypeStyles();
            processStylersVector(features, fts, layer);
            LOGGER.fine("encoded " + featureType.getTypeName().toString());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (IllegalAttributeException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

            FeatureTypeStyle[] fts = style.getFeatureTypeStyles();
            processStylersCoverage(features, fts, layer);
            LOGGER.fine("encoded " + featureType.getTypeName().toString());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (IllegalAttributeException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

                write("\"/>\n");
            }

            LOGGER.fine("encoded " + featureType.getTypeName());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (Exception ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

        SimpleFeatureType schema = super.getSchema(typeName);

          try {
              return DataUtilities.createSubType(schema, null, myCRS);
          } catch (SchemaException e) {
              throw new DataSourceException(e.getMessage(), e);
          }
      }
View Full Code Here

            FeatureCollection<SimpleFeatureType, SimpleFeature> fc = versioningSource
                    .getVersionedFeatures(newQuery);

            return applyProjectionPolicies(targetCRS, fc);
        } catch (Exception e) {
            throw new DataSourceException(e);
        }
    }
View Full Code Here

                ft = null;
            }

            LOGGER.fine("encoded " + featureType.getTypeName());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } finally {
      if(iter!=null)
            //make sure we always close
        fColl.close(iter);
        }
View Full Code Here

            FeatureCollection<SimpleFeatureType, SimpleFeature> fc;
            fc = versioningSource.getVersionedFeatures(newQuery);

            return applyProjectionPolicies(targetCRS, fc);
        } catch (Exception e) {
            throw new DataSourceException(e);
        }
    }
View Full Code Here

            FeatureCollection<SimpleFeatureType, SimpleFeature> fc;
            fc = versioningSource.getVersionedFeatures(newQuery);

            return applyProjectionPolicies(targetCRS, fc);
        } catch (Exception e) {
            throw new DataSourceException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.geotools.data.DataSourceException

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.