public class SampleDataAccessFeatureCollection extends ArrayList<Feature> implements FeatureCollection<FeatureType,Feature>
SampleDataAccess
.modCount
Constructor and Description |
---|
SampleDataAccessFeatureCollection() |
Modifier and Type | Method and 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.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
contains, containsAll, isEmpty, size, toArray, toArray
containsAll, equals, hashCode
parallelStream, stream
public void accepts(FeatureVisitor visitor, ProgressListener progress) throws IOException
FeatureCollection
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.
accepts
in interface FeatureCollection<FeatureType,Feature>
visitor
- Closure applied to each feature in turn.progress
- Used to report progress, may be used to interrupt the operationIOException
FeatureCollection.accepts(org.opengis.feature.FeatureVisitor,
org.opengis.util.ProgressListener)
public FeatureIterator<Feature> features()
features
in interface FeatureCollection<FeatureType,Feature>
FeatureCollection.features()
public ReferencedEnvelope getBounds()
getBounds
in interface FeatureCollection<FeatureType,Feature>
FeatureCollection.getBounds()
public String getID()
getID
in interface FeatureCollection<FeatureType,Feature>
FeatureCollection.getID()
public FeatureType getSchema()
getSchema
in interface FeatureCollection<FeatureType,Feature>
FeatureCollection.getSchema()
public FeatureCollection<FeatureType,Feature> sort(SortBy order)
sort
in interface FeatureCollection<FeatureType,Feature>
order
- Sort orderFeatureCollection.sort(org.opengis.filter.sort.SortBy)
public FeatureCollection<FeatureType,Feature> subCollection(Filter filter)
subCollection
in interface FeatureCollection<FeatureType,Feature>
FeatureCollection.subCollection(org.opengis.filter.Filter)
Copyright © 1996–2019 Geotools. All rights reserved.