|
|||||||||
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.VoidRemovalThread
public class VoidRemovalThread
Removes voids from a raster by taking average of non-void neighbours. Removes voids iteratively prioritising void cells with the smallest number of non-void neighbours.
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 | |
---|---|
VoidRemovalThread(GISFrame gisFrame)
Creates an object ready to look for void cells (represented by RasterMap.NO_VALUE) and remove them. |
Method Summary | |
---|---|
boolean |
doCommand(LSCommand command)
Creates a raster map without void values, based on the one given by the scripting command. |
void |
doProcessing()
Processes DEM looking for and removing voids. |
LSCommand |
getCommand()
Reports the syntax required to allow voids to be removed via a scripting command. |
GISFrame |
getGISFrame()
Retrieves the GISFrame that can be used for storing multiple spatial objects. |
int |
getNumNeighbours(RasterMap raster,
int row,
int col)
Counts the number of non-void neighbours surrounding a given cell. |
Object |
getReturnedObject()
Returns a raster map holding the transformed 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 VoidRemovalThread(GISFrame gisFrame)
gisFrame
- GISFrame holding raster to process.Method Detail |
---|
public LSCommand getCommand()
getCommand
in interface Scriptable
public boolean doCommand(LSCommand command)
doCommand
in interface Scriptable
command
- Command containing parameter values.
public Object getReturnedObject()
getReturnedObject
in interface Scriptable
public GISFrame getGISFrame()
getGISFrame
in interface Scriptable
public void doProcessing()
doProcessing
in class LSThread
GISFrame
public int getNumNeighbours(RasterMap raster, int row, int col)
raster
- Raster map to examine.row
- Row coordinate of cell to examine.col
- Column coordinate of cell to examine.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |