jwo.landserf.process
Class VectorToRasterThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
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
Method Summary |
void |
doProcessing()
Converts the vector into a raster. |
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 |
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.
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, 11th February, 2009