org.geotools.feature
Class FeatureCollections
java.lang.Object
org.geotools.feature.FeatureCollections
- All Implemented Interfaces:
- Factory
- Direct Known Subclasses:
- DefaultFeatureCollections
public abstract class FeatureCollections
- extends java.lang.Object
- implements Factory
A utility class for working with FeatureCollections.
Provides a mechanism for obtaining a FeatureCollection instance.
- Author:
- Ian Schneider
Method Summary |
protected abstract FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
createCollection()
Subclasses must implement this to return a new FeatureCollection object. |
protected abstract FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
createCollection(java.lang.String id)
Subclasses must implement this to return a new FeatureCollection object
with a particular id. |
java.util.Map |
getImplementationHints()
Returns the implementation hints. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
newCollection()
create a new FeatureCollection using the current default factory. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
newCollection(java.lang.String id)
Creates a new FeatureCollection with a particular id using the current
default factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureCollections
public FeatureCollections()
newCollection
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> newCollection()
- create a new FeatureCollection using the current default factory.
- Returns:
- A FeatureCollection instance.
newCollection
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> newCollection(java.lang.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<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> createCollection()
- Subclasses must implement this to return a new FeatureCollection object.
- Returns:
- A new FeatureCollection
createCollection
protected abstract FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> createCollection(java.lang.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 java.util.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-2010 Geotools. All Rights Reserved.