org.geotools.process.feature
Class AbstractFeatureCollectionProcessFactory
Object
SingleProcessFactory
AbstractFeatureCollectionProcessFactory
- All Implemented Interfaces:
- Factory, OptionalFactory, ProcessFactory
- Direct Known Subclasses:
- FeatureToFeatureProcessFactory
public abstract class AbstractFeatureCollectionProcessFactory
- extends SingleProcessFactory
Base class for process factories which perform an operation on each feature in a feature
collection.
Subclasses must implement:
- Since:
- 2.6
- Author:
- Justin Deoliveira, OpenGEO
Methods inherited from class SingleProcessFactory |
create, create, getDescription, getDescription, getImplementationHints, getNames, getParameterInfo, getResultInfo, getResultInfo, getTitle, getTitle, getVersion, getVersion, isAvailable, supportsProgress, supportsProgress |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FEATURES
public static final Parameter<FeatureCollection> FEATURES
- Features for operation
AbstractFeatureCollectionProcessFactory
public AbstractFeatureCollectionProcessFactory()
getParameterInfo
public final Map<String,Parameter<?>> getParameterInfo()
- Adds the
FEATURES
parameter and then delegates to addParameters(Map)
.
- Specified by:
getParameterInfo
in class SingleProcessFactory
addParameters
protected abstract void addParameters(Map<String,Parameter<?>> parameters)
- Method for subclasses to add parameter descriptors for the process.
Subclasses should not add a parameter for the input feature collection as this is done by
the case class. Example implementation for a simple buffer example:
protected void addParameters(Map> parameters) {
parameters.put(BUFFER.key, BUFFER);
}
Copyright © 1996-2014 Geotools. All Rights Reserved.