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