org.geotools.data.simple
Interface SimpleFeatureIterator

All Superinterfaces:
Closeable, FeatureIterator<SimpleFeature>
All Known Implementing Classes:
ContentFeatureCollection.WrappingFeatureIterator, DecoratingSimpleFeatureIterator, DelegateSimpleFeatureIterator, FilteringSimpleFeatureIterator, ForceCoordinateSystemIterator, MaxFeaturesSimpleFeatureIterator, PreGeneralizedFeatureIterator, ReprojectFeatureIterator, ReprojectingFeatureIterator, ReTypingFeatureIterator, SimpleFeatureIteratorImpl, SortedFeatureIterator, WrappingIterator

public interface SimpleFeatureIterator
extends FeatureIterator<SimpleFeature>

Streaming access to simple features, required to FeatureIterator.close() after use.

This is an explicit interface for FeatureIterator.

Sample use:

 SimpleFeatureIterator i = featureCollection.features()
 try {
    while( i.hasNext() ){
        SimpleFeature feature = i.next();
    }
 }
 finally {
    i.close();
 }
 

Author:
Jody Garnett

Method Summary
 
Methods inherited from interface FeatureIterator
close, hasNext, next
 



Copyright © 1996-2014 Geotools. All Rights Reserved.