jwo.landserf.process
Class PeakClassificationThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.landserf.process.PeakClassificationThread
All Implemented Interfaces:
JWInterruptionListener, Runnable

public class PeakClassificationThread
extends LSThread

Creates a new raster identifying peaks from a given DEM. This requires parameters such as minimum height and minimum drop to be supplied allowing Munros, Corbetts, Hewitts, Marilyns etc. to be identified.

Version:
2.2, 26th January, 2005.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PeakClassificationThread(GISFrame gisFrame, float minHeight, float minDrop, boolean doPeakedness, boolean doSummits, boolean doHierarchy)
          Classifies the DEM according to the peak classification parameters.
 
Method Summary
 void doProcessing()
          Processes DEM stored as the primary raster in the GISFrame provided to the constructor and creates a raster map of peaks.
 RasterMap getFuzzyPeakMap()
          Retrieves the newly created raster map containing fuzzy peak memberships.
 RasterMap getPeakHierarchyMap()
          Retrieves the newly created raster map containing nested peak catchments.
 RasterMap getPeakMap()
          Retrieves the newly created raster map containing peaks and summits.
 VectorMap getSummitMap()
          Retrieves the newly created vector map containing summits and their drops.
 
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

PeakClassificationThread

public PeakClassificationThread(GISFrame gisFrame,
                                float minHeight,
                                float minDrop,
                                boolean doPeakedness,
                                boolean doSummits,
                                boolean doHierarchy)
Classifies the DEM according to the peak classification parameters.

Parameters:
gisFrame - GISFrame holding DEM to process.
minHeight - Minimum height of peak.
minDrop - Minimum drop surrounding peak.
doPeakedness - Peakedness calculation performed if true.
doSummits - Calculates vector summit locations if true.
Method Detail

doProcessing

public void doProcessing()
Processes DEM stored as the primary raster in the GISFrame provided to the constructor and creates a raster map of peaks. Depending on options given to the constructor, can also generate a raster map of nested peak catchments, a raster map representing fuzzy peak extents and a vector map containing summits and drops. The newly created raster map containing the peaks is added to the GISFrame provided to the constructor as a secondary raster. This can be retrieved directly via this class's method getPeakMap(), or by calling gisFrame.getRaster2();. If summit vector map output has been chosen, the newly created vector map containing the summits and drops is added to the GISFrame provided to the constructor as a primary vector map. This can be retrieved directly via this class's method getSummitMap(), or by calling gisFrame.getVector1();. If the fuzzy peak or peak hierarchy options are selected, these raster maps can be retrieved directly via this class's getFuzzyPeakMap() and getPeakHierarchyMap() methods. Alternatively, they can be retrieved via the GISFrame's getRasterMaps() method (the last one/two map(s) added).

Note that this method will be called automatically if this is run as a threaded process (e.g. myPeakClassificationThread.start()). Alternatively it can be called directly as a non-threaded process.

Specified by:
doProcessing in class LSThread
See Also:
GISFrame

getPeakMap

public RasterMap getPeakMap()
Retrieves the newly created raster map containing peaks and summits.

Returns:
New peak map, or null if problem or process yet to take place.

getFuzzyPeakMap

public RasterMap getFuzzyPeakMap()
Retrieves the newly created raster map containing fuzzy peak memberships.

Returns:
New fuzzy peak map, or null if problem, option not selected or process yet to take place.

getPeakHierarchyMap

public RasterMap getPeakHierarchyMap()
Retrieves the newly created raster map containing nested peak catchments.

Returns:
New nested peak catchment map, or null problem, option not selected or process yet to take place.

getSummitMap

public VectorMap getSummitMap()
Retrieves the newly created vector map containing summits and their drops.

Returns:
New summit map, or null if problem, summit map not selected or process yet to take place.


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005