jwo.landserf.process
Class VectorToRasterThread

java.lang.Object
  extended by java.lang.Thread
      extended by jwo.landserf.process.LSThread
          extended by jwo.landserf.process.VectorToRasterThread
All Implemented Interfaces:
Runnable, JWInterruptionListener

public class VectorToRasterThread
extends LSThread

Performs a vector to raster transformation. Requires an input vector and raster. The raster provided determines the resolution of the transformed data. Priority is given to points over lines over areas. In other words, all points appear 'on top' of lines which appear 'on top' of areas.

Version:
2.3, 12th September, 2008.
Author:
Jo Wood

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
VectorToRasterThread(GISFrame gisFrame, VectorMap vectorMap, RasterMap rasterMap)
          Transforms the given vector map into a raster.
 
Method Summary
 void doProcessing()
          Converts the vector into a raster.
 
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
 

Constructor Detail

VectorToRasterThread

public VectorToRasterThread(GISFrame gisFrame,
                            VectorMap vectorMap,
                            RasterMap rasterMap)
Transforms the given vector map into a raster.

Parameters:
gisFrame - GUI in which to report results.
vectorMap - Vector to transform.
rasterMap - Raster holding transformed data. This raster defines bounds and resolution of output.
Method Detail

doProcessing

public void doProcessing()
Converts the vector into a raster. The results of the transformation are stored in the raster map supplied to the constructor or can be retrieved by calling gisFrame.getRaster1() using the GIS frame supplied to the constructor.

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

Specified by:
doProcessing in class LSThread
See Also:
GISFrame


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009