org.geotools.process.feature
Class FeatureToFeatureProcess

Object
  extended by AbstractProcess
      extended by AbstractFeatureCollectionProcess
          extended by 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
FeatureToFeatureProcess(FeatureToFeatureProcessFactory factory)
          Constructor
 
Method Summary
 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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureToFeatureProcess

public FeatureToFeatureProcess(FeatureToFeatureProcessFactory factory)
Constructor

Parameters:
factory -
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 process
monitor - 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.