Package org.geotools.process.feature
Class FeatureToFeatureProcess
- Object
-
- AbstractProcess
-
- AbstractFeatureCollectionProcess
-
- FeatureToFeatureProcess
-
- All Implemented Interfaces:
Process
public abstract class FeatureToFeatureProcess extends AbstractFeatureCollectionProcess
Abstract implementation of Process for feature collections.Subclasses need to implement
AbstractFeatureCollectionProcess.processFeature(SimpleFeature, Map)
. This method should perform the operation on the feature, changing any attributes on the feature as necessary.- Since:
- 2.6
- Author:
- Justin Deoliveira, OpenGEO
- See Also:
FeatureToFeatureProcessFactory
-
-
Field Summary
-
Fields inherited from class AbstractProcess
factory
-
-
Constructor Summary
Constructors Constructor Description FeatureToFeatureProcess(FeatureToFeatureProcessFactory factory)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
execute(Map<String,Object> input, ProgressListener monitor)
Execute this process with the provided inputs.protected SimpleFeatureType
getTargetSchema(SimpleFeatureType sourceSchema, Map<String,Object> input)
Subclasses should override if the target schema is different that then original schema (mind, if the number of attributes changes it's better to roll your own class instead of using this one)-
Methods inherited from class AbstractFeatureCollectionProcess
processFeature
-
-
-
-
Constructor Detail
-
FeatureToFeatureProcess
public FeatureToFeatureProcess(FeatureToFeatureProcessFactory factory)
Constructor
-
-
Method Detail
-
execute
public final Map<String,Object> execute(Map<String,Object> input, ProgressListener monitor)
Description copied from interface:Process
Execute this process with the provided inputs.- Parameters:
input
- Input parameters for this processmonitor
- listener for handling the progress of the process- Returns:
- Map of results, (@see ProcessFactory for details), or null if canceled
-
getTargetSchema
protected SimpleFeatureType getTargetSchema(SimpleFeatureType sourceSchema, Map<String,Object> input)
Subclasses should override if the target schema is different that then original schema (mind, if the number of attributes changes it's better to roll your own class instead of using this one)
-
-