fr.ign.cogit.alpage.morphal.plugin.linestring
Class SegmentOrientationPlugin
java.lang.Object
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
fr.ign.cogit.alpage.morphal.plugin.linestring.SegmentOrientationPlugin
- All Implemented Interfaces:
- PlugIn, ThreadedPlugIn
public class SegmentOrientationPlugin
- extends AbstractPlugIn
- implements ThreadedPlugIn
Plugin to compute and add three new attributes to the specified Layer
of segments:
1. length (attribute: "length"): length of the segment,
2. orientation (attribute: "orientatio"): orientation of the segment,
3. classification (attribute: "classe") -- optional --: classification of the computed orientations.
Attention: the Feature
s with a Geometry
different from a segment
are not computed.
- Version:
- 0.1 (2011-01-09)
- Author:
- Eric Grosso - IGN / Laboratoire COGIT
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.vividsolutions.jump.workbench.plugin.PlugIn |
getName |
SegmentOrientationPlugin
public SegmentOrientationPlugin()
initialize
public void initialize(PlugInContext context)
- Initialisation.
- Specified by:
initialize
in interface PlugIn
- Overrides:
initialize
in class AbstractPlugIn
- Parameters:
context
-
execute
public boolean execute(PlugInContext context)
- Global execution.
- Specified by:
execute
in interface PlugIn
- Overrides:
execute
in class AbstractPlugIn
- Parameters:
context
-
- Returns:
- true if process is executed, otherwise false
run
public void run(TaskMonitor monitor,
PlugInContext context)
- Execution.
- Specified by:
run
in interface ThreadedPlugIn
- Parameters:
monitor
- context
-