org.geotools.process.feature
Class AbstractFeatureCollectionProcessFactory
java.lang.Object
org.geotools.process.impl.SingleProcessFactory
org.geotools.process.feature.AbstractFeatureCollectionProcessFactory
- All Implemented Interfaces:
- Factory, OptionalFactory, ProcessFactory
- Direct Known Subclasses:
- FeatureToFeatureProcessFactory, VectorToRasterFactory
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 org.geotools.process.impl.SingleProcessFactory |
create, create, getDescription, getDescription, getImplementationHints, getNames, getParameterInfo, getResultInfo, getResultInfo, getTitle, getTitle, getVersion, getVersion, isAvailable, supportsProgress, supportsProgress |
Methods inherited from class java.lang.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 java.util.Map<java.lang.String,Parameter<?>> getParameterInfo()
- Adds the
FEATURES
parameter and then delegates to addParameters(Map)
.
- Specified by:
getParameterInfo
in class SingleProcessFactory
addParameters
protected abstract void addParameters(java.util.Map<java.lang.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-2010 Geotools. All Rights Reserved.