MorphAL 0.1

fr.ign.cogit.alpage.morphal.plugin.linestring
Class SegmentOrientationPlugin

java.lang.Object
  extended by com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
      extended by 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 Features with a Geometry different from a segment are not computed.

Version:
0.1 (2011-01-09)
Author:
Eric Grosso - IGN / Laboratoire COGIT

Constructor Summary
SegmentOrientationPlugin()
           
 
Method Summary
 boolean execute(PlugInContext context)
          Global execution.
 void initialize(PlugInContext context)
          Initialisation.
 void run(TaskMonitor monitor, PlugInContext context)
          Execution.
 
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
createName, execute, getName, toActionListener, toString
 
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
 

Constructor Detail

SegmentOrientationPlugin

public SegmentOrientationPlugin()
Method Detail

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 -

MorphAL 0.1