|
|||||||||
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.PitRemovalThread
public class PitRemovalThread
Detects pits in a DEM and creates a pitless surface. This is useful for hydrological analysis that requires all cells to drain to the boundary of the DEM.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
CHANNELLING
Indicates pits to be removed via channelling outflow. |
static int |
INFILLING
Indicates pits to be removed via infilling. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
PitRemovalThread(GISFrame gisFrame)
Processes the primary DEM by identifying pits and creates a new pitless surface. |
|
PitRemovalThread(GISFrame gisFrame,
int removalType)
Processes the primary DEM by identifying pits and creates a new pitless surface. |
Method Summary | |
---|---|
boolean |
doCommand(LSCommand command)
Creates a pitless surface. |
void |
doProcessing()
Removes pits from the DEM stored as the primary raster in the GISFrame
provided to the constructor. |
LSCommand |
getCommand()
Reports the syntax required to allow a pitless surface to be created via a scripting command. |
GISFrame |
getGISFrame()
Retrieves the GISFrame that can be used for storing multiple spatial objects. |
RasterMap |
getPitlessMap()
Retrieves the newly created pitless DEM. |
RasterMap |
getPitMap()
Retrieves the newly created raster map containing pits removed from DEM. |
Object |
getReturnedObject()
Returns a raster map holding the pitless surface. |
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 |
Field Detail |
---|
public static final int INFILLING
public static final int CHANNELLING
Constructor Detail |
---|
public PitRemovalThread(GISFrame gisFrame)
gisFrame
- GISFrame holding DEM to process.public PitRemovalThread(GISFrame gisFrame, int removalType)
gisFrame
- GISFrame holding DEM to process.removalType
- Type of pit removal. Should be one of INFILLING
or CHANNELLING
.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()
GISFrame
provided to the constructor. A newly created raster map containing the pitless DEM
and one containing the location and depth of pits are added to the GISFrame
provided to the constructor. The pitless DEM can be retrieved directly via this class's
getPitlessMap()
method, or by calling gisFrame.getRaster2();
.
The raster map containing pits can be retrieved via getPitMap()
or by
calling gisFrame.getRasters()
and selecting the last raster map added.
doProcessing
in class LSThread
GISFrame
public RasterMap getPitlessMap()
public RasterMap getPitMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |