jwo.landserf.process
Class SurfNetworkThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.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

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SurfNetworkThread(GISFrame gisFrame)
          Initialises the surface network processing.
 
Method Summary
 void doProcessing()
          Processes the raster DEM and surface feature layers extracting the surface network.
 RasterMap getFetureNetworkRaster()
          Retrieves the newly created raster map representing thinned surface network.
 VectorMap getSurfaceNetwork()
          Retrieves a newly created surface feature network.
 
Methods inherited from class jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setMessage
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SurfNetworkThread

public SurfNetworkThread(GISFrame gisFrame)
Initialises the surface network processing.

Parameters:
gisFrame - GIS frame containing rasters to process.
Method Detail

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