Class DataFeatureCollection

Object
DataFeatureCollection
All Implemented Interfaces:
SimpleFeatureCollection, FeatureCollection<SimpleFeatureType,SimpleFeature>
Direct Known Subclasses:
CompositeFeatureCollection, DefaultFeatureResults, EmptyFeatureCollection, IndexedFeatureResults

public abstract class DataFeatureCollection extends Object implements SimpleFeatureCollection
A starting point for implementing FeatureCollection's backed onto a FeatureReader.

This implementation requires you to implement the following:

  • getSchema() - this should match reader.getSchema()
  • reader()
    features() - override one of these two method to access content
  • getBounds()
  • getCount()
  • collection()

    This class will implement the 'extra' methods required by FeatureCollection for you (in simple terms based on the FeatureResults API). Anything that is often customised is available to you as a constructor parameters.

    Enjoy.

Since:
2.1.RC0
Author:
jgarnett