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
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureToFeatureProcess
public FeatureToFeatureProcess(FeatureToFeatureProcessFactory factory)
- Constructor
- Parameters:
factory
-
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)
- Parameters:
sourceSchema
- input
-
- Returns:
Copyright © 1996-2014 Geotools. All Rights Reserved.