jwo.landserf.process
Class VectorToRasterThread

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

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.2, 26th February, 2005.
Author:
Jo Wood

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 vectormap 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, 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

VectorToRasterThread

public VectorToRasterThread(GISFrame gisFrame,
                            VectorMap vectorMap,
                            RasterMap rasterMap)
Transforms the given vectormap 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-2005, last modified, 11th March, 2005