org.geotools.feature
Class FeatureCollections
Object
FeatureCollections
- All Implemented Interfaces:
- Factory
- Direct Known Subclasses:
- DefaultFeatureCollections
public abstract class FeatureCollections
- extends Object
- implements Factory
A utility class for working with FeatureCollections.
Provides a mechanism for obtaining a FeatureCollection instance.
- Author:
- Ian Schneider
- Module:
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureCollections
public FeatureCollections()
newCollection
public static FeatureCollection<SimpleFeatureType,SimpleFeature> newCollection()
- create a new FeatureCollection using the current default factory.
- Returns:
- A FeatureCollection instance.
newCollection
public static FeatureCollection<SimpleFeatureType,SimpleFeature> newCollection(String id)
- Creates a new FeatureCollection with a particular id using the current
default factory.
- Parameters:
id
- The id of the feature collection.
- Returns:
- A new FeatureCollection intsance with the specified id.
- Since:
- 2.4
createCollection
protected abstract FeatureCollection<SimpleFeatureType,SimpleFeature> createCollection()
- Subclasses must implement this to return a new FeatureCollection object.
- Returns:
- A new FeatureCollection
createCollection
protected abstract FeatureCollection<SimpleFeatureType,SimpleFeature> createCollection(String id)
- Subclasses must implement this to return a new FeatureCollection object
with a particular id.
- Parameters:
id
- The identification of the feature collection.
- Returns:
- A new FeatureCollection with the specified id.
getImplementationHints
public Map getImplementationHints()
- Returns the implementation hints. The default implementation returns en empty map.
- Specified by:
getImplementationHints
in interface Factory
- Returns:
- The map of hints, or an empty map
if none.
Copyright © 1996-2009 Geotools. All Rights Reserved.