|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread jwo.landserf.process.LSThread jwo.landserf.process.SimplifyThread
public class SimplifyThread
Allows the lines in the primary vector map to be simplified using the Douglas-Peucker line simplification algorithm.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SimplifyThread(GISFrame gisFrame)
Creates an object ready for simplification of a vector map but does not perform the simplification. |
|
SimplifyThread(GISFrame gisFrame,
float tolerance)
Creates an object that will simplify a vector map. |
Method Summary | |
---|---|
boolean |
doCommand(LSCommand command)
Simplifies the vector map specified in the given scripting parameters. |
void |
doProcessing()
Simplifies the lines in the primary vector map. |
LSCommand |
getCommand()
Reports the syntax required to allow vector map to be simplified via a scripting command. |
GISFrame |
getGISFrame()
Retrieves the GISFrame that can be used for storing multiple spatial objects and messages. |
Object |
getReturnedObject()
Returns the newly simplified vector map. |
VectorMap |
getSimplifiedVectorMap()
Retrieves the simplified vector map. |
static GISVector |
simplify(GISVector gisVect,
float tolerance)
Creates a simplified version of the given GISVector object. |
Methods inherited from class jwo.landserf.process.LSThread |
---|
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setFinalMessage, setMessage |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimplifyThread(GISFrame gisFrame)
gisFrame
- Frame holding spatial objects and in which to report results.public SimplifyThread(GISFrame gisFrame, float tolerance)
gisFrame
- Frame holding spatial objects and in which to report results.tolerance
- Tolerance threshold distance measured in the map units of the primary vector.Method Detail |
---|
public void doProcessing()
GISFrame
provided to the constructor and selected as the primary
vector map. To retrieve it either call getSimplifiedVectorMap()
from this
class or call gisFrame.getVectorMap1();
.
doProcessing
in class LSThread
GISFrame
public LSCommand getCommand()
getCommand
in interface Scriptable
public boolean doCommand(LSCommand command)
doCommand
in interface Scriptable
command
- Command containing parameter values.
public Object getReturnedObject()
getSimplifiedVectorMap
except that it is compatible with the scriptable interface. If command has yet to be issued
this will return null.
getReturnedObject
in interface Scriptable
public GISFrame getGISFrame()
getGISFrame
in interface Scriptable
public static GISVector simplify(GISVector gisVect, float tolerance)
gisVect
- Vector object to simplify.tolerance
- Douglas-Peucker tolerance (in spatial units).
public VectorMap getSimplifiedVectorMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |