jwo.landserf.process
Class SurfNetworkThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.landserf.process.SurfNetworkThread
- All Implemented Interfaces:
- JWInterruptionListener, Runnable
- public class SurfNetworkThread
- extends LSThread
Calculates a vector surface network from a raster elevation
model and surface feature raster.
- Version:
- 2.2, 3rd September, 2004.
- Author:
- Jo Wood
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
SurfNetworkThread
public SurfNetworkThread(GISFrame gisFrame)
- Initialises the surface network processing.
- Parameters:
gisFrame
- GIS frame containing rasters to process.
doProcessing
public void doProcessing()
- Processes the raster DEM and surface feature layers extracting
the surface network. Generatea a raster and vector map of the surface network
(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 getFeatureNetworkRaster() and
getFeatureNetworkVector() methods, or by calling gisFrame.getRaster2();
abd gisFrame.getVectorMap1()
.
Note that this method will be called automatically if this is run as a threaded
process (e.g. mySurfaceNetworkThread.start()). Alternatively it can be called directly
as a non-threaded process.
- Specified by:
doProcessing
in class LSThread
- See Also:
GISFrame
getFetureNetworkRaster
public RasterMap getFetureNetworkRaster()
- Retrieves the newly created raster map representing thinned surface network.
- Returns:
- Surface network 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-2005, last modified, 11th March, 2005