jwo.landserf.process
Class SurfaceFeatureThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.landserf.process.SurfaceFeatureThread
- All Implemented Interfaces:
- Runnable, FootprintListener, JWInterruptionListener
public class SurfaceFeatureThread
- extends LSThread
- implements FootprintListener
Calculates surface features based on the relative drop method.
- Version:
- 2.3, 17th July, 2006.
- Author:
- Jo Wood
Constructor Summary |
SurfaceFeatureThread(GISFrame gisFrame,
float minDrop)
Classifies the DEM into surface features according to the given relative drop/climb. |
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 |
SurfaceFeatureThread
public SurfaceFeatureThread(GISFrame gisFrame,
float minDrop)
- Classifies the DEM into surface features according to the given relative drop/climb.
- Parameters:
gisFrame
- GISFrame holding DEM to process.minDrop
- Minimum drop/climb surrounding feature.
doProcessing
public void doProcessing()
- Processes DEM and classifies surface features. Generates a raster and vector
map of surface features (pits, peaks, passes, ridges and channels). The newly
created raster and vector maps are added to the
GISFrame
provided
to the constructor as a secondary raster and primary vector respectively. These
can be retrieved directly via this class's method getSurfaceFeatures() and
getFeatureNetwork() methods, or by calling gisFrame.getRaster2();
and gisFrame.getVectorMap1()
.
Note that this method will be called automatically if this is run as a threaded
process (e.g. mySurfaceFeatureThread.start()). Alternatively it can be called
directly as a non-threaded process.
- Specified by:
doProcessing
in class LSThread
- See Also:
GISFrame
footprintReceived
public void footprintReceived(Footprint fp)
- Responds to a mouse-selected location by calculating the local surface network
from that position.
- Specified by:
footprintReceived
in interface FootprintListener
- Parameters:
fp
- Footprint broadcast.
getSurfaceFetures
public RasterMap getSurfaceFetures()
- Retrieves the newly created raster map representing surface features.
- Returns:
- Surface feature raster, or null if problem or process yet to
take place.
getSurfaceNetwork
public VectorMap getSurfaceNetwork()
- Retrieves a newly created surface feature network.
- Returns:
- Vector map containing surface feature network, or null if
problem or process yet to take place.
Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009