net.simplace.processors.FeatureCollectionCreatorProcessor
Version: 1.0
This processor creates a new or extends an existing org.geotools.feature.FeatureCollection.
It is abstract because the geometry type of the org.geotools.feature.FeatureCollection and
so the specification of one geometry via the input parameters is implemented
in a sub-class (e.g. PointFeatureCollectionCreatorProcessor).
Required input parameters:
- Key featureCollectionParamKey:
key where to find the org.geotools.feature.FeatureCollection
to extend with a new Feature. If no
org.geotools.feature.FeatureCollection exists under
the given key, a new one is created and stored
under the key. Also a de.schmitzm.geotools.styling.StyledFeatureCollectionInterface
is allowed.
- Key forceNewCollection (optional): If true a new FeatureCollection
is also created if featureCollectionParamKey already contains
a FeatureCollection.
- Key attrValue.: Value of attribute colName for the new Feature.
- Key geomCRS: WKT specification or EPSG code of the CRS, which is used for the new feature's geometry.
This parameter is only necessary if a new org.geotools.feature.FeatureCollection is created.
public abstract class FeatureCollectionCreatorProcessor extends
net.simplace.util.pipeline.FWProcessor {
// Public Constructors
public FeatureCollectionCreatorProcessor();
// Constants
public static final GeometryFactory GEOMETRY_FACTORY;
public static final String FC_KEY;
public static final String FORCE_KEY;
public static final String ATTRVAL_KEY;
public static final String CRS_KEY;
// Public Instance Methods public abstract Class getGeometryType();
Returns the geometry type for the org.geotools.feature.FeatureCollection provided by
this processor.
returns the geometry type for the {@link FeatureCollection} provided by
this processor
public abstract Geometry createDefaultGeometry();
Returns a default geometry for the org.geotools.feature.FeatureCollection provided by
this processor.
returns a default geometry for the {@link FeatureCollection} provided by
this processor
public abstract Geometry createGeometryFromParameterMap();
Creates a geometry from the parameters in the in-channel.
returns a geometry from the parameters in the in-channel
// Protected Instance Methods protected boolean
process() throws
PipeLineException;
// Defines
net.simplace.util.pipeline.FWProcessor
Extends the org.geotools.feature.FeatureCollection with a new com.sun.org.apache.xalan.internal.utils.FeatureManager.Feature, which attributes
are specified by in-channel parameters.
returns ever {@code true}
}
Hierarchy: java.lang.Object - net.simplace.util.pipeline.FWProcessor - FeatureCollectionCreatorProcessor
Extended by: PointFeatureCollectionCreatorProcessor