|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.process.impl.AbstractProcess
org.geotools.process.feature.AbstractFeatureCollectionProcess
org.geotools.process.feature.FeatureToFeatureProcess
org.geotools.process.feature.BufferFeatureCollectionProcess
public class BufferFeatureCollectionProcess
Process which buffers an entire feature collection.
Field Summary |
---|
Fields inherited from class org.geotools.process.impl.AbstractProcess |
---|
factory |
Constructor Summary | |
---|---|
BufferFeatureCollectionProcess(BufferFeatureCollectionFactory factory)
Constructor |
Method Summary | |
---|---|
protected void |
processFeature(org.opengis.feature.simple.SimpleFeature feature,
java.util.Map<java.lang.String,java.lang.Object> input)
Performs an operation on a single feature in the collection. |
Methods inherited from class org.geotools.process.feature.FeatureToFeatureProcess |
---|
execute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferFeatureCollectionProcess(BufferFeatureCollectionFactory factory)
factory
- Method Detail |
---|
protected void processFeature(org.opengis.feature.simple.SimpleFeature feature, java.util.Map<java.lang.String,java.lang.Object> input) throws java.lang.Exception
AbstractFeatureCollectionProcess
This method should do some work based on the feature and then set any attributes on the feature as necessary. Example of a simple buffering operation:
protected void processFeature(SimpleFeature feature, Mapinput) throws Exception { Double buffer = (Double) input.get( BufferFeatureCollectionFactory.BUFFER.key ); Geometry g = (Geometry) feature.getDefaultGeometry(); g = g.buffer( buffer ); feature.setDefaultGeometry( g ); }
processFeature
in class AbstractFeatureCollectionProcess
feature
- the feature being processedinput
- a Map of input parameters
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |