Class SampleDataAccessFeatureCollection
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Feature>
,Collection<Feature>
,List<Feature>
,RandomAccess
,FeatureCollection<FeatureType,Feature>
public class SampleDataAccessFeatureCollection extends ArrayList<Feature> implements FeatureCollection<FeatureType,Feature>
Collection of features from aSampleDataAccess
.- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description SampleDataAccessFeatureCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accepts(FeatureVisitor visitor, ProgressListener progress)
Visit the contents of a feature collection.FeatureIterator<Feature>
features()
Get an iterator over the features.ReferencedEnvelope
getBounds()
Not yet implemented.String
getID()
Not yet implemented.FeatureType
getSchema()
Return type of features.FeatureCollection<FeatureType,Feature>
sort(SortBy order)
Unsupported operation.FeatureCollection<FeatureType,Feature>
subCollection(Filter filter)
Unsupported operation.-
Methods inherited from class ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class AbstractCollection
containsAll, toString
-
Methods inherited from interface Collection
parallelStream, stream, toArray
-
Methods inherited from interface FeatureCollection
contains, containsAll, isEmpty, size, toArray, toArray
-
Methods inherited from interface List
containsAll
-
-
-
-
Method Detail
-
accepts
public void accepts(FeatureVisitor visitor, ProgressListener progress) throws IOException
Description copied from interface:FeatureCollection
Visit the contents of a feature collection.The order of traversal is dependent on the FeatureCollection implementation; some collections are able to make efficient use of an internal index in order to quickly visit features located in the same region.
- Specified by:
accepts
in interfaceFeatureCollection<FeatureType,Feature>
- Parameters:
visitor
- Closure applied to each feature in turn.progress
- Used to report progress, may be used to interrupt the operation- Throws:
IOException
- See Also:
FeatureCollection.accepts(org.geotools.api.feature.FeatureVisitor, org.geotools.api.util.ProgressListener)
-
features
public FeatureIterator<Feature> features()
Get an iterator over the features.- Specified by:
features
in interfaceFeatureCollection<FeatureType,Feature>
- Returns:
- A FeatureIterator.
- See Also:
FeatureCollection.features()
-
getBounds
public ReferencedEnvelope getBounds()
Not yet implemented.- Specified by:
getBounds
in interfaceFeatureCollection<FeatureType,Feature>
- Returns:
- An Envelope containing the total bounds of this collection.
- See Also:
FeatureCollection.getBounds()
-
getID
public String getID()
Not yet implemented.- Specified by:
getID
in interfaceFeatureCollection<FeatureType,Feature>
- See Also:
FeatureCollection.getID()
-
getSchema
public FeatureType getSchema()
Return type of features.- Specified by:
getSchema
in interfaceFeatureCollection<FeatureType,Feature>
- Returns:
- FeatureType describing the "common" schema to all child features of this collection
- See Also:
FeatureCollection.getSchema()
-
sort
public FeatureCollection<FeatureType,Feature> sort(SortBy order)
Unsupported operation.- Specified by:
sort
in interfaceFeatureCollection<FeatureType,Feature>
- Parameters:
order
- Sort order- Returns:
- FeatureCollection sorted in the indicated order
- See Also:
FeatureCollection.sort(org.geotools.api.filter.sort.SortBy)
-
subCollection
public FeatureCollection<FeatureType,Feature> subCollection(Filter filter)
Unsupported operation.- Specified by:
subCollection
in interfaceFeatureCollection<FeatureType,Feature>
- Returns:
- SimpleFeatureCollection identified as subset.
- See Also:
FeatureCollection.subCollection(org.geotools.api.filter.Filter)
-
-