Package org.geotools.feature.collection
Class ClippingFeatureCollection
Object
DecoratingSimpleFeatureCollection
ClippingFeatureCollection
- All Implemented Interfaces:
SimpleFeatureCollection,FeatureCollection<SimpleFeatureType,SimpleFeature>
The class decorates a SimpleFeatureCollection with one that returns features that intersect the geometry passed with
a Hints.GEOMETRY_CLIP
-
Field Summary
Fields inherited from class DecoratingSimpleFeatureCollection
delegate -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DecoratingSimpleFeatureCollection
accepts, canDelegate, contains, containsAll, equals, getBounds, getID, getSchema, hashCode, isEmpty, sort, subCollection, toArray, toArray
-
Constructor Details
-
ClippingFeatureCollection
-
-
Method Details
-
features
Description copied from interface:SimpleFeatureCollectionObtain a SimpleFeatureIterator of the Features within this SimpleFeatureCollection.The implementation of FeatureIterator must adhere to the rules of fail-fast concurrent modification. In addition (to allow for resource backed collections) the
SimpleFeatureIterator.close()method must be called.Example use:
SimpleFeatureIterator iterator=collection.features(); try { while( iterator.hasNext() ){ SimpleFeature feature = iterator.next(); System.out.println( feature.getID() ); } } finally { iterator.close(); }- Specified by:
featuresin interfaceFeatureCollection<SimpleFeatureType,SimpleFeature> - Specified by:
featuresin interfaceSimpleFeatureCollection- Overrides:
featuresin classDecoratingSimpleFeatureCollection- Returns:
- A FeatureIterator.
-
size
public int size()Description copied from interface:FeatureCollectionPlease note this operation may be expensive when working with remote content.- Specified by:
sizein interfaceFeatureCollection<SimpleFeatureType,SimpleFeature> - Overrides:
sizein classDecoratingSimpleFeatureCollection- See Also:
-