Package org.geotools.feature.collection

Examples of org.geotools.feature.collection.DelegateSimpleFeatureIterator


  /**
   * @returns a feature iterator that iterators over all features in the collection
   */
  public SimpleFeatureIterator features() {
    SimpleFeatureIterator iter = new DelegateSimpleFeatureIterator(this, openIterator());
    iterators.add(iter);
    return iter;
  }
View Full Code Here


     * @param featuresArg a colleciton of features.  <b>All features must be of the same FeatureType</b>
     * @param typeArg the Feature type of of the features.
     */
    public CollectionFeatureReader(Collection<SimpleFeature> featuresArg, SimpleFeatureType typeArg) {
        assert !featuresArg.isEmpty();
        this.features = new DelegateSimpleFeatureIterator( featuresArg.iterator() );
        this.type = typeArg;
    }
View Full Code Here

     * @param featuresArg an of features.  <b>All features must be of the same FeatureType</b>
     */
    public CollectionFeatureReader(SimpleFeature[] featuresArg) {
        assert featuresArg.length > 0;
        Iterator<SimpleFeature> iterator = Arrays.asList(featuresArg).iterator();
    this.features = new DelegateSimpleFeatureIterator( iterator );
        type = featuresArg[0].getFeatureType();
    }
View Full Code Here

     * <p>
     * So when we implement FeatureCollection.iterator() this will work
     * out of the box.
     */
    public SimpleFeatureIterator features() {
      SimpleFeatureIterator iterator = new DelegateSimpleFeatureIterator( this, iterator() );
        open.add( iterator );
        return iterator;
    }
View Full Code Here

        RetypingIterator retyping = (RetypingIterator) iterator;
        delegate.close(retyping.delegate);
    }

    public SimpleFeatureIterator features() {
        return new DelegateSimpleFeatureIterator(this, iterator());
    }
View Full Code Here

    public SimpleFeatureIterator features() {
        return new DelegateSimpleFeatureIterator(this, iterator());
    }

    public void close(SimpleFeatureIterator iterator) {
        DelegateSimpleFeatureIterator delegate = (DelegateSimpleFeatureIterator) iterator;
        delegate.close();
    }
View Full Code Here

        RemappingIterator remapping = (RemappingIterator) iterator;
        delegate.close(remapping.delegate);
    }

    public SimpleFeatureIterator features() {
        return new DelegateSimpleFeatureIterator(this, iterator());
    }
View Full Code Here

    public SimpleFeatureIterator features() {
        return new DelegateSimpleFeatureIterator(this, iterator());
    }

    public void close(SimpleFeatureIterator iterator) {
        DelegateSimpleFeatureIterator delegate = (DelegateSimpleFeatureIterator) iterator;
        delegate.close();
    }
View Full Code Here

TOP

Related Classes of org.geotools.feature.collection.DelegateSimpleFeatureIterator

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.