This processor performs modifying operations on a org.geotools.feature.FeatureCollection:
add a feature to the org.geotools.feature.FeatureCollection
remove one or more features from the org.geotools.feature.FeatureCollection
Required input parameters:
Key featureCollectionParamKey:
key where to find the org.geotools.feature.FeatureCollection.
Also a de.schmitzm.geotools.styling.StyledFeatureCollectionInterface
is allowed.
Key featureOperation: Identifies the modifying operation. Allowed values
are "ADD_FEATURE" and "REMOVE_FEATURE".
Key featureKey: Identifies the key where to find a org.opengis.feature.Feature in the
SDSS parameter map. For "ADD_FEATURE" this feature will be
added to the collection. For "REMOVE_FEATURE" this feature
will be removed.
Key featureIdx (optional): Only used for "REMOVE_FEATURE". Identifies
the index of the org.opengis.feature.Feature which
will be removed (starting with 0).
Key featureRule (optional): Only used for "REMOVE_FEATURE". Rule for
de.schmitzm.geotools.feature.FeatureOperationTreeFilter to
determine the feature(s) which will be
removed.
If featureKey is used, featureIdx and featureRule are ignored.
If featureIdx is not specified, the first feature will be removed.
If featureRule and featureIdx are specified, first the rule is applied and the
index is used relative to the filter result. If neither featureIdx nor featureRule
is specified, the first feature of all will be removed.
public class FeatureCollectionWriterProcessor extends net.simplace.util.pipeline.FWProcessor { // Public Constructors public FeatureCollectionWriterProcessor(); // Constants public static final String INKEY_FC; public static final String INKEY_OP; public static final String INKEY_FKEY; public static final String INKEY_FIDX; public static final String INKEY_FRULE; // Public Instance Methods